Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
af0ea8ef
Commit
af0ea8ef
authored
Dec 29, 2015
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3771 from robromano/master
Add HTTP status code 451 to status.py
parents
2d27d9a1
c8915c07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
docs/api-guide/status-codes.md
+1
-0
rest_framework/status.py
+1
-0
No files found.
docs/api-guide/status-codes.md
View file @
af0ea8ef
...
@@ -89,6 +89,7 @@ The 4xx class of status code is intended for cases in which the client seems to
...
@@ -89,6 +89,7 @@ The 4xx class of status code is intended for cases in which the client seems to
HTTP_428_PRECONDITION_REQUIRED
HTTP_428_PRECONDITION_REQUIRED
HTTP_429_TOO_MANY_REQUESTS
HTTP_429_TOO_MANY_REQUESTS
HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE
HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE
HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS
## Server Error - 5xx
## Server Error - 5xx
...
...
rest_framework/status.py
View file @
af0ea8ef
...
@@ -65,6 +65,7 @@ HTTP_417_EXPECTATION_FAILED = 417
...
@@ -65,6 +65,7 @@ HTTP_417_EXPECTATION_FAILED = 417
HTTP_428_PRECONDITION_REQUIRED
=
428
HTTP_428_PRECONDITION_REQUIRED
=
428
HTTP_429_TOO_MANY_REQUESTS
=
429
HTTP_429_TOO_MANY_REQUESTS
=
429
HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE
=
431
HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE
=
431
HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS
=
451
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment