summaryrefslogtreecommitdiffstats
path: root/requests/status_codes.py
diff options
context:
space:
mode:
Diffstat (limited to 'requests/status_codes.py')
-rw-r--r--requests/status_codes.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/requests/status_codes.py b/requests/status_codes.py
index fab8e95..ed7a866 100644
--- a/requests/status_codes.py
+++ b/requests/status_codes.py
@@ -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'),
@@ -18,7 +18,8 @@ _codes = {
205: ('reset_content', 'reset'),
206: ('partial_content', 'partial'),
207: ('multi_status', 'multiple_status', 'multi_stati', 'multiple_stati'),
- 208: ('im_used',),
+ 208: ('already_reported',),
+ 226: ('im_used',),
# Redirection.
300: ('multiple_choices',),
@@ -62,10 +63,11 @@ _codes = {
444: ('no_response', 'none'),
449: ('retry_with', 'retry'),
450: ('blocked_by_windows_parental_controls', 'parental_controls'),
+ 451: ('unavailable_for_legal_reasons', 'legal_reasons'),
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'),
@@ -79,8 +81,8 @@ _codes = {
codes = LookupDict(name='status_codes')
-for (code, titles) in _codes.items():
+for (code, titles) in list(_codes.items()):
for title in titles:
setattr(codes, title, code)
if not title.startswith('\\'):
- setattr(codes, title.upper(), code) \ No newline at end of file
+ setattr(codes, title.upper(), code)