@@ -594,8 +594,9 @@ def is_server_error(self):
594
594
CONTINUE = 100 , 'Continue' , 'Request received, please continue'
595
595
SWITCHING_PROTOCOLS = (101 , 'Switching Protocols' ,
596
596
'Switching to new protocol; obey Upgrade header' )
597
- PROCESSING = 102 , 'Processing'
598
- EARLY_HINTS = 103 , 'Early Hints'
597
+ PROCESSING = 102 , 'Processing' , 'Server is processing the request'
598
+ EARLY_HINTS = (103 , 'Early Hints' ,
599
+ 'Headers sent to prepare for the response' )
599
600
# success
600
601
OK = 200 , 'OK' , 'Request fulfilled, document follows'
601
602
CREATED = 201 , 'Created' , 'Document created, URL follows'
@@ -606,9 +607,11 @@ def is_server_error(self):
606
607
NO_CONTENT = 204 , 'No Content' , 'Request fulfilled, nothing follows'
607
608
RESET_CONTENT = 205 , 'Reset Content' , 'Clear input form for further input'
608
609
PARTIAL_CONTENT = 206 , 'Partial Content' , 'Partial content follows'
609
- MULTI_STATUS = 207 , 'Multi-Status'
610
- ALREADY_REPORTED = 208 , 'Already Reported'
611
- IM_USED = 226 , 'IM Used'
610
+ MULTI_STATUS = (207 , 'Multi-Status' ,
611
+ 'Response contains multiple statuses in the body' )
612
+ ALREADY_REPORTED = (208 , 'Already Reported' ,
613
+ 'Operation has already been reported' )
614
+ IM_USED = 226 , 'IM Used' , 'Request completed using instance manipulations'
612
615
# redirection
613
616
MULTIPLE_CHOICES = (300 , 'Multiple Choices' ,
614
617
'Object has several resources -- see URI list' )
@@ -665,15 +668,19 @@ def is_server_error(self):
665
668
EXPECTATION_FAILED = (417 , 'Expectation Failed' ,
666
669
'Expect condition could not be satisfied' )
667
670
IM_A_TEAPOT = (418 , 'I\' m a Teapot' ,
668
- 'Server refuses to brew coffee because it is a teapot. ' )
671
+ 'Server refuses to brew coffee because it is a teapot' )
669
672
MISDIRECTED_REQUEST = (421 , 'Misdirected Request' ,
670
673
'Server is not able to produce a response' )
671
- UNPROCESSABLE_CONTENT = 422 , 'Unprocessable Content'
674
+ UNPROCESSABLE_CONTENT = (422 , 'Unprocessable Content' ,
675
+ 'Server is not able to process the contained instructions' )
672
676
UNPROCESSABLE_ENTITY = UNPROCESSABLE_CONTENT
673
- LOCKED = 423 , 'Locked'
674
- FAILED_DEPENDENCY = 424 , 'Failed Dependency'
675
- TOO_EARLY = 425 , 'Too Early'
676
- UPGRADE_REQUIRED = 426 , 'Upgrade Required'
677
+ LOCKED = 423 , 'Locked' , 'Resource of a method is locked'
678
+ FAILED_DEPENDENCY = (424 , 'Failed Dependency' ,
679
+ 'Dependent action of the request failed' )
680
+ TOO_EARLY = (425 , 'Too Early' ,
681
+ 'Server refuses to process a request that might be replayed' )
682
+ UPGRADE_REQUIRED = (426 , 'Upgrade Required' ,
683
+ 'Server refuses to perform the request using the current protocol' )
677
684
PRECONDITION_REQUIRED = (428 , 'Precondition Required' ,
678
685
'The origin server requires the request to be conditional' )
679
686
TOO_MANY_REQUESTS = (429 , 'Too Many Requests' ,
@@ -700,10 +707,14 @@ def is_server_error(self):
700
707
'The gateway server did not receive a timely response' )
701
708
HTTP_VERSION_NOT_SUPPORTED = (505 , 'HTTP Version Not Supported' ,
702
709
'Cannot fulfill request' )
703
- VARIANT_ALSO_NEGOTIATES = 506 , 'Variant Also Negotiates'
704
- INSUFFICIENT_STORAGE = 507 , 'Insufficient Storage'
705
- LOOP_DETECTED = 508 , 'Loop Detected'
706
- NOT_EXTENDED = 510 , 'Not Extended'
710
+ VARIANT_ALSO_NEGOTIATES = (506 , 'Variant Also Negotiates' ,
711
+ 'Server has an internal configuration error' )
712
+ INSUFFICIENT_STORAGE = (507 , 'Insufficient Storage' ,
713
+ 'Server is not able to store the representation' )
714
+ LOOP_DETECTED = (508 , 'Loop Detected' ,
715
+ 'Server encountered an infinite loop while processing a request' )
716
+ NOT_EXTENDED = (510 , 'Not Extended' ,
717
+ 'Request does not meet the resource access policy' )
707
718
NETWORK_AUTHENTICATION_REQUIRED = (511 ,
708
719
'Network Authentication Required' ,
709
720
'The client needs to authenticate to gain network access' )
0 commit comments