mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-01 05:54:01 +03:00
add rfc6585 status codes
This commit is contained in:
parent
0fc5a49a11
commit
5b0685743f
|
@ -40,6 +40,13 @@ HTTP_414_REQUEST_URI_TOO_LONG = 414
|
||||||
HTTP_415_UNSUPPORTED_MEDIA_TYPE = 415
|
HTTP_415_UNSUPPORTED_MEDIA_TYPE = 415
|
||||||
HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE = 416
|
HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE = 416
|
||||||
HTTP_417_EXPECTATION_FAILED = 417
|
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_500_INTERNAL_SERVER_ERROR = 500
|
||||||
HTTP_501_NOT_IMPLEMENTED = 501
|
HTTP_501_NOT_IMPLEMENTED = 501
|
||||||
HTTP_502_BAD_GATEWAY = 502
|
HTTP_502_BAD_GATEWAY = 502
|
||||||
|
|
Loading…
Reference in New Issue
Block a user