From 5b0685743f2271a489b2ed54bc8c95904434953a Mon Sep 17 00:00:00 2001 From: juandebravo Date: Mon, 10 Sep 2012 12:55:20 +0200 Subject: [PATCH] add rfc6585 status codes --- djangorestframework/status.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/djangorestframework/status.py b/djangorestframework/status.py index 684c9b380..40b4d0dfc 100644 --- a/djangorestframework/status.py +++ b/djangorestframework/status.py @@ -40,6 +40,13 @@ HTTP_414_REQUEST_URI_TOO_LONG = 414 HTTP_415_UNSUPPORTED_MEDIA_TYPE = 415 HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE = 416 HTTP_417_EXPECTATION_FAILED = 417 + +# http://tools.ietf.org/html/rfc6585 +HTTP_428_PRECONDITION_REQUIRED = 428 +HTTP_429_TOO_MANY_REQUESTS = 429 +HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE = 431 +# end + HTTP_500_INTERNAL_SERVER_ERROR = 500 HTTP_501_NOT_IMPLEMENTED = 501 HTTP_502_BAD_GATEWAY = 502