adding UTF-8 status codes
authorMax Countryman <max.countryman@gmail.com>
Thu, 8 Nov 2012 22:30:13 +0000 (14:30 -0800)
committerMax Countryman <max.countryman@gmail.com>
Thu, 8 Nov 2012 22:30:13 +0000 (14:30 -0800)
requests/status_codes.py

index e25ecdb91985320ed4c862ead93a744859ffced6..08edab4e17fb773bc60bf3bba98b0e095cc67a4e 100644 (file)
@@ -10,7 +10,7 @@ _codes = {
     102: ('processing',),
     103: ('checkpoint',),
     122: ('uri_too_long', 'request_uri_too_long'),
-    200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\\o/'),
+    200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\\o/', '✓'),
     201: ('created',),
     202: ('accepted',),
     203: ('non_authoritative_info', 'non_authoritative_information'),
@@ -65,7 +65,7 @@ _codes = {
     499: ('client_closed_request',),
 
     # Server Error.
-    500: ('internal_server_error', 'server_error', '/o\\'),
+    500: ('internal_server_error', 'server_error', '/o\\', '✗'),
     501: ('not_implemented',),
     502: ('bad_gateway',),
     503: ('service_unavailable', 'unavailable'),