From 91e75f721508d2198ccb3d4e2979047249ae01f4 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 17 Aug 2011 13:40:29 +0300 Subject: [PATCH] As proposed by @davidbgk this is only consistent with \o/ :) --- requests/status_codes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requests/status_codes.py b/requests/status_codes.py index e802314..c8a47a0 100644 --- a/requests/status_codes.py +++ b/requests/status_codes.py @@ -22,7 +22,7 @@ _codes = { # Redirection. 300: ('multiple_choices',), - 301: ('moved_permanently', 'moved'), + 301: ('moved_permanently', 'moved', '\\o-'), 302: ('found',), 302: ('see_other', 'other'), 304: ('not_modified',), @@ -36,7 +36,7 @@ _codes = { 401: ('unauthorized',), 402: ('payment_required', 'payment'), 403: ('forbidden',), - 404: ('not_found',), + 404: ('not_found', '-o-'), 405: ('method_not_allowed', 'not_allowed'), 406: ('not_acceptable',), 407: ('proxy_authentication_required', 'proxy_auth', 'proxy_authentication'), @@ -62,7 +62,7 @@ _codes = { 499: ('client_closed_request',), # Server Error. - 500: ('internal_server_error', 'server_error'), + 500: ('internal_server_error', 'server_error', '/o\\'), 501: ('not_implemented',), 502: ('bad_gateway',), 503: ('service_unavailable', 'unavailable'), -- 2.7.4