Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions status.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

Descriptive HTTP status codes, for code readability.

See RFC 2616 - http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
And RFC 6585 - http://tools.ietf.org/html/rfc6585
See RFC 2616 - https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
And RFC 6585 - https://tools.ietf.org/html/rfc6585
And RFC 4918 - https://tools.ietf.org/html/rfc4918
"""
from __future__ import unicode_literals
import sys
Expand Down Expand Up @@ -47,6 +48,7 @@ def is_server_error(code):
204: 'HTTP_204_NO_CONTENT',
205: 'HTTP_205_RESET_CONTENT',
206: 'HTTP_206_PARTIAL_CONTENT',
207: 'HTTP_207_MULTI_STATUS',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also add the following status_codes:

Suggested change
207: 'HTTP_207_MULTI_STATUS',
207: 'HTTP_207_MULTI_STATUS',

208: 'HTTP_208_ALREADY_REPORTED',

226: 'HTTP_226_IM_USED',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
226: 'HTTP_226_IM_USED',
226: 'HTTP_226_IM_USED',

and also
425: 'HTTP_425_ TOO_EARLY',

300: 'HTTP_300_MULTIPLE_CHOICES',
301: 'HTTP_301_MOVED_PERMANENTLY',
Expand Down