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
edd8f596
Commit
edd8f596
authored
Aug 26, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add status codes as per RFC 6585
parent
474780f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
djangorestframework/status.py
+6
-2
No files found.
djangorestframework/status.py
View file @
edd8f596
"""
"""
Descriptive HTTP status codes, for code readability.
Descriptive HTTP status codes, for code readability.
See RFC 2616 -
Sec 10:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
See RFC 2616 - http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
A
lso see django.core.handlers.wsgi.STATUS_CODE_TEXT
A
nd RFC 6585 - http://tools.ietf.org/html/rfc6585
"""
"""
HTTP_100_CONTINUE
=
100
HTTP_100_CONTINUE
=
100
...
@@ -40,9 +40,13 @@ HTTP_414_REQUEST_URI_TOO_LONG = 414
...
@@ -40,9 +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_428_PRECONDITION_REQUIRED
=
428
HTTP_429_TOO_MANY_REQUESTS
=
429
HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE
=
431
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
HTTP_503_SERVICE_UNAVAILABLE
=
503
HTTP_503_SERVICE_UNAVAILABLE
=
503
HTTP_504_GATEWAY_TIMEOUT
=
504
HTTP_504_GATEWAY_TIMEOUT
=
504
HTTP_505_HTTP_VERSION_NOT_SUPPORTED
=
505
HTTP_505_HTTP_VERSION_NOT_SUPPORTED
=
505
HTTP_511_NETWORD_AUTHENTICATION_REQUIRED
=
511
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