summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCHI Cheng <git@chicheng.me>2013-06-14 23:22:52 +1000
committerCHI Cheng <git@chicheng.me>2013-06-14 23:22:52 +1000
commit659d090025cf3ba1b33844090800efcdbc04c7c6 (patch)
tree2eca9f0052de8ded0b6627b5165cb64e2e3a4a0e
parentb7bd7087e6480c6a071a12ce20b389a8c225e908 (diff)
Fixed #20598 -- Add new HTTP status codes defined in rfc6585
428, 429, 431 and 511
-rw-r--r--django/http/response.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/django/http/response.py b/django/http/response.py
index 9aa49b1d5f..784f21174e 100644
--- a/django/http/response.py
+++ b/django/http/response.py
@@ -66,6 +66,9 @@ REASON_PHRASES = {
423: 'LOCKED',
424: 'FAILED DEPENDENCY',
426: 'UPGRADE REQUIRED',
+ 428: 'PRECONDITION REQUIRED',
+ 429: 'TOO MANY REQUESTS',
+ 431: 'REQUEST HEADER FIELDS TOO LARGE',
500: 'INTERNAL SERVER ERROR',
501: 'NOT IMPLEMENTED',
502: 'BAD GATEWAY',
@@ -76,6 +79,7 @@ REASON_PHRASES = {
507: 'INSUFFICIENT STORAGE',
508: 'LOOP DETECTED',
510: 'NOT EXTENDED',
+ 511: 'NETWORK AUTHENTICATION REQUIRED',
}