projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
681956e
)
New HTTP status codes (draft only).
author
Zbigniew Siciarz
<antyqjon@gmail.com>
Thu, 20 Oct 2011 15:37:16 +0000
(17:37 +0200)
committer
Zbigniew Siciarz
<antyqjon@gmail.com>
Thu, 20 Oct 2011 15:37:16 +0000
(17:37 +0200)
See IETF document at
https://tools.ietf.org/html/draft-nottingham-http-new-status-02.
requests/status_codes.py
patch
|
blob
|
history
diff --git
a/requests/status_codes.py
b/requests/status_codes.py
index
a809de6
..
b49c3c1
100644
(file)
--- a/
requests/status_codes.py
+++ b/
requests/status_codes.py
@@
-56,6
+56,9
@@
_codes = {
424: ('failed_depdendency', 'depdendency'),
425: ('unordered_collection', 'unordered'),
426: ('upgrade_required', 'upgrade'),
+ 428: ('precondition_required', 'precondition'),
+ 429: ('too_many_requests', 'too_many'),
+ 431: ('header_fields_too_large', 'fields_too_large'),
444: ('no_response', 'none'),
449: ('retry_with', 'retry'),
450: ('blocked_by_windows_parental_controls', 'parental_controls'),