From: Armin Ronacher Date: Wed, 17 Aug 2011 10:40:29 +0000 (+0300) Subject: As proposed by @davidbgk this is only consistent with \o/ :) X-Git-Tag: v0.6.1~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91e75f721508d2198ccb3d4e2979047249ae01f4;p=services%2Fpython-requests.git As proposed by @davidbgk this is only consistent with \o/ :) --- 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'),