We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2d27d9a + c8915c0 commit af0ea8eCopy full SHA for af0ea8e
docs/api-guide/status-codes.md
@@ -89,6 +89,7 @@ The 4xx class of status code is intended for cases in which the client seems to
89
HTTP_428_PRECONDITION_REQUIRED
90
HTTP_429_TOO_MANY_REQUESTS
91
HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE
92
+ HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS
93
94
## Server Error - 5xx
95
rest_framework/status.py
@@ -65,6 +65,7 @@ def is_server_error(code):
65
HTTP_428_PRECONDITION_REQUIRED = 428
66
HTTP_429_TOO_MANY_REQUESTS = 429
67
HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE = 431
68
+HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS = 451
69
HTTP_500_INTERNAL_SERVER_ERROR = 500
70
HTTP_501_NOT_IMPLEMENTED = 501
71
HTTP_502_BAD_GATEWAY = 502
0 commit comments