3
3
4
4
See RFC 2616 - http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
5
5
And RFC 6585 - http://tools.ietf.org/html/rfc6585
6
+ And RFC 4918 - https://tools.ietf.org/html/rfc4918
6
7
"""
7
8
from __future__ import unicode_literals
8
9
@@ -36,6 +37,7 @@ def is_server_error(code):
36
37
HTTP_204_NO_CONTENT = 204
37
38
HTTP_205_RESET_CONTENT = 205
38
39
HTTP_206_PARTIAL_CONTENT = 206
40
+ HTTP_207_MULTI_STATUS = 207
39
41
HTTP_300_MULTIPLE_CHOICES = 300
40
42
HTTP_301_MOVED_PERMANENTLY = 301
41
43
HTTP_302_FOUND = 302
@@ -62,6 +64,9 @@ def is_server_error(code):
62
64
HTTP_415_UNSUPPORTED_MEDIA_TYPE = 415
63
65
HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE = 416
64
66
HTTP_417_EXPECTATION_FAILED = 417
67
+ HTTP_422_UNPROCESSABLE_ENTITY = 422
68
+ HTTP_423_LOCKED = 423
69
+ HTTP_424_FAILED_DEPENDENCY = 424
65
70
HTTP_428_PRECONDITION_REQUIRED = 428
66
71
HTTP_429_TOO_MANY_REQUESTS = 429
67
72
HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE = 431
@@ -72,4 +77,5 @@ def is_server_error(code):
72
77
HTTP_503_SERVICE_UNAVAILABLE = 503
73
78
HTTP_504_GATEWAY_TIMEOUT = 504
74
79
HTTP_505_HTTP_VERSION_NOT_SUPPORTED = 505
80
+ HTTP_507_INSUFFICIENT_STORAGE = 507
75
81
HTTP_511_NETWORK_AUTHENTICATION_REQUIRED = 511
0 commit comments