From df928764e269434a805d396b2a8515c6a5695ee6 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 5 Dec 2009 23:03:48 +0000 Subject: [PATCH] reorganized error codes --- docs/manual.rst | 56 ++++++++++++++++++++----------- include/libtorrent/error_code.hpp | 53 ++++++++++++++++++++++------- src/error_code.cpp | 30 ++++++++++++++++- src/http_connection.cpp | 6 ++-- test/test_primitives.cpp | 11 ++++++ 5 files changed, 120 insertions(+), 36 deletions(-) diff --git a/docs/manual.rst b/docs/manual.rst index fa10754d9..10c4beb5c 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -5945,7 +5945,7 @@ code symbol description ------ ----------------------------------------- ----------------------------------------------------------------- 81 packet_too_large The packet size exceeded the upper sanity check-limit ------ ----------------------------------------- ----------------------------------------------------------------- -82 http_parse_error Failed to parse HTTP response +82 reserved ------ ----------------------------------------- ----------------------------------------------------------------- 83 http_error The web server responded with an error ------ ----------------------------------------- ----------------------------------------------------------------- @@ -6006,15 +6006,15 @@ NAT-PMP errors: ====== ========================================= ================================================================= code symbol description ====== ========================================= ================================================================= -108 unsupported_protocol_version The NAT-PMP router responded with an unsupported protocol version +120 unsupported_protocol_version The NAT-PMP router responded with an unsupported protocol version ------ ----------------------------------------- ----------------------------------------------------------------- -109 natpmp_not_authorized You are not authorized to map ports on this NAT-PMP router +121 natpmp_not_authorized You are not authorized to map ports on this NAT-PMP router ------ ----------------------------------------- ----------------------------------------------------------------- -110 network_failure The NAT-PMP router failed because of a network failure +122 network_failure The NAT-PMP router failed because of a network failure ------ ----------------------------------------- ----------------------------------------------------------------- -111 no_resources The NAT-PMP router failed because of lack of resources +123 no_resources The NAT-PMP router failed because of lack of resources ------ ----------------------------------------- ----------------------------------------------------------------- -112 unsupported_opcode The NAT-PMP router failed because an unsupported opcode was sent +124 unsupported_opcode The NAT-PMP router failed because an unsupported opcode was sent ====== ========================================= ================================================================= fastresume data errors: @@ -6022,40 +6022,58 @@ fHTTP/1.1 200 OK Transfer-Encoding: chunked Cache-Control: max-age=0, private, must-revalidate, no-transform Set-Cookie: i_like_gitea=64e5d695e3ef1d26; Path=/; HttpOnly; Secure; SameSite=Lax Set-Cookie: _csrf=AUMe3ccrVBeuZroBE_jTLc_AGKU6MTc1MzI0NDcxNzE4NzAzNzAzMg; Path=/; Max-Age=86400; HttpOnly; Secure; SameSite=Lax X-Frame-Options: SAMEORIGIN Date: Wed, 23 Jul 2025 04:25:17 GMT Content-Type: text/plain; charset=utf-8 Connection: close X-Cache-Status: HIT X-Cache-Age: 0 3c7f From df928764e269434a805d396b2a8515c6a5695ee6 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 5 Dec 2009 23:03:48 +0000 Subject: [PATCH] reorganized error codes --- docs/manual.rst | 56 ++++++++++++++++++++----------- include/libtorrent/error_code.hpp | 53 ++++++++++++++++++++++------- src/error_code.cpp | 30 ++++++++++++++++- src/http_connection.cpp | 6 ++-- test/test_primitives.cpp | 11 ++++++ 5 files changed, 120 insertions(+), 36 deletions(-) diff --git a/docs/manual.rst b/docs/manual.rst index fa10754d9..10c4beb5c 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -5945,7 +5945,7 @@ code symbol description ------ ----------------------------------------- ----------------------------------------------------------------- 81 packet_too_large The packet size exceeded the upper sanity check-limit ------ ----------------------------------------- ----------------------------------------------------------------- -82 http_parse_error Failed to parse HTTP response +82 reserved ------ ----------------------------------------- ----------------------------------------------------------------- 83 http_error The web server responded with an error ------ ----------------------------------------- ----------------------------------------------------------------- @@ -6006,15 +6006,15 @@ NAT-PMP errors: ====== ========================================= ================================================================= code symbol description ====== ========================================= ================================================================= -108 unsupported_protocol_version The NAT-PMP router responded with an unsupported protocol version +120 unsupported_protocol_version The NAT-PMP router responded with an unsupported protocol version ------ ----------------------------------------- ----------------------------------------------------------------- -109 natpmp_not_authorized You are not authorized to map ports on this NAT-PMP router +121 natpmp_not_authorized You are not authorized to map ports on this NAT-PMP router ------ ----------------------------------------- ----------------------------------------------------------------- -110 network_failure The NAT-PMP router failed because of a network failure +122 network_failure The NAT-PMP router failed because of a network failure ------ ----------------------------------------- ----------------------------------------------------------------- -111 no_resources The NAT-PMP router failed because of lack of resources +123 no_resources The NAT-PMP router failed because of lack of resources ------ ----------------------------------------- ----------------------------------------------------------------- -112 unsupported_opcode The NAT-PMP router failed because an unsupported opcode was sent +124 unsupported_opcode The NAT-PMP router failed because an unsupported opcode was sent ====== ========================================= ================================================================= fastresume data errors: @@ -6022,40 +6022,58 @@ f 0