@@ -54,8 +54,9 @@ def is_server_error(self):
54
54
CONTINUE = 100 , 'Continue' , 'Request received, please continue'
55
55
SWITCHING_PROTOCOLS = (101 , 'Switching Protocols' ,
56
56
'Switching to new protocol; obey Upgrade header' )
57
- PROCESSING = 102 , 'Processing'
58
- EARLY_HINTS = 103 , 'Early Hints'
57
+ PROCESSING = 102 , 'Processing' , 'Server is processing the request'
58
+ EARLY_HINTS = (103 , 'Early Hints' ,
59
+ 'Headers sent to prepare for the response' )
59
60
60
61
# success
61
62
OK = 200 , 'OK' , 'Request fulfilled, document follows'
@@ -67,9 +68,11 @@ def is_server_error(self):
67
68
NO_CONTENT = 204 , 'No Content' , 'Request fulfilled, nothing follows'
68
69
RESET_CONTENT = 205 , 'Reset Content' , 'Clear input form for further input'
69
70
PARTIAL_CONTENT = 206 , 'Partial Content' , 'Partial content follows'
70
- MULTI_STATUS = 207 , 'Multi-Status'
71
- ALREADY_REPORTED = 208 , 'Already Reported'
72
- IM_USED = 226 , 'IM Used'
71
+ MULTI_STATUS = (207 , 'Multi-Status' ,
72
+ 'Response contains multiple statuses in the body' )
73
+ ALREADY_REPORTED = (208 , 'Already Reported' ,
74
+ 'Operation has already been reported' )
75
+ IM_USED = 226 , 'IM Used' , 'Request completed using instance manipulations'
73
76
74
77
# redirection
75
78
MULTIPLE_CHOICES = (300 , 'Multiple Choices' ,
@@ -128,15 +131,19 @@ def is_server_error(self):
128
131
EXPECTATION_FAILED = (417 , 'Expectation Failed' ,
129
132
'Expect condition could not be satisfied' )
130
133
IM_A_TEAPOT = (418 , 'I\' m a Teapot' ,
131
- 'Server refuses to brew coffee because it is a teapot. ' )
134
+ 'Server refuses to brew coffee because it is a teapot' )
132
135
MISDIRECTED_REQUEST = (421 , 'Misdirected Request' ,
133
136
'Server is not able to produce a response' )
134
- UNPROCESSABLE_CONTENT = 422 , 'Unprocessable Content'
137
+ UNPROCESSABLE_CONTENT = (422 , 'Unprocessable Content' ,
138
+ 'Server is not able to process the contained instructions' )
135
139
UNPROCESSABLE_ENTITY = UNPROCESSABLE_CONTENT
136
- LOCKED = 423 , 'Locked'
137
- FAILED_DEPENDENCY = 424 , 'Failed Dependency'
138
- TOO_EARLY = 425 , 'Too Early'
139
- UPGRADE_REQUIRED = 426 , 'Upgrade Required'
140
+ LOCKED = 423 , 'Locked' , 'Resource of a method is locked'
141
+ FAILED_DEPENDENCY = (424 , 'Failed Dependency' ,
142
+ 'Dependent action of the request failed' )
143
+ TOO_EARLY = (425 , 'Too Early' ,
144
+ 'Server refuses to process a request that might be replayed' )
145
+ UPGRADE_REQUIRED = (426 , 'Upgrade Required' ,
146
+ 'Server refuses to perform the request using the current protocol' )
140
147
PRECONDITION_REQUIRED = (428 , 'Precondition Required' ,
141
148
'The origin server requires the request to be conditional' )
142
149
TOO_MANY_REQUESTS = (429 , 'Too Many Requests' ,
@@ -164,10 +171,14 @@ def is_server_error(self):
164
171
'The gateway server did not receive a timely response' )
165
172
HTTP_VERSION_NOT_SUPPORTED = (505 , 'HTTP Version Not Supported' ,
166
173
'Cannot fulfill request' )
167
- VARIANT_ALSO_NEGOTIATES = 506 , 'Variant Also Negotiates'
168
- INSUFFICIENT_STORAGE = 507 , 'Insufficient Storage'
169
- LOOP_DETECTED = 508 , 'Loop Detected'
170
- NOT_EXTENDED = 510 , 'Not Extended'
174
+ VARIANT_ALSO_NEGOTIATES = (506 , 'Variant Also Negotiates' ,
175
+ 'Server has an internal configuration error' )
176
+ INSUFFICIENT_STORAGE = (507 , 'Insufficient Storage' ,
177
+ 'Server is not able to store the representation' )
178
+ LOOP_DETECTED = (508 , 'Loop Detected' ,
179
+ 'Server encountered an infinite loop while processing a request' )
180
+ NOT_EXTENDED = (510 , 'Not Extended' ,
181
+ 'Request does not meet the resource access policy' )
171
182
NETWORK_AUTHENTICATION_REQUIRED = (511 ,
172
183
'Network Authentication Required' ,
173
184
'The client needs to authenticate to gain network access' )
0 commit comments