class codes(IntEnum):
HTTP status codes and reason phrases
Status codes from the following RFCs are all observed:
- RFC 7231: Hypertext Transfer Protocol (HTTP/1.1), obsoletes 2616
- RFC 6585: Additional HTTP Status Codes
- RFC 3229: Delta encoding in HTTP
- RFC 4918: HTTP Extensions for WebDAV, obsoletes 2518
- RFC 5842: Binding Extensions to WebDAV
- RFC 7238: Permanent Redirect
- RFC 2295: Transparent Content Negotiation in HTTP
- RFC 2774: An HTTP Extension Framework
- RFC 7540: Hypertext Transfer Protocol Version 2 (HTTP/2)
- RFC 2324: Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0)
- RFC 7725: An HTTP Status Code to Report Legal Obstacles
- RFC 8297: An HTTP Status Code for Indicating Hints
- RFC 8470: Using Early Data in HTTP
Class Method | get_reason_phrase |
Undocumented |
Class Method | is_client_error |
Returns True for 4xx status codes, False otherwise. |
Class Method | is_error |
Returns True for 4xx or 5xx status codes, False otherwise. |
Class Method | is_informational |
Returns True for 1xx status codes, False otherwise. |
Class Method | is_redirect |
Returns True for 3xx status codes, False otherwise. |
Class Method | is_server_error |
Returns True for 5xx status codes, False otherwise. |
Class Method | is_success |
Returns True for 2xx status codes, False otherwise. |
Method | __new__ |
Undocumented |
Method | __str__ |
Undocumented |
Constant | ACCEPTED |
Undocumented |
Constant | ALREADY_REPORTED |
Undocumented |
Constant | BAD_GATEWAY |
Undocumented |
Constant | BAD_REQUEST |
Undocumented |
Constant | CONFLICT |
Undocumented |
Constant | CONTINUE |
Undocumented |
Constant | CREATED |
Undocumented |
Constant | EARLY_HINTS |
Undocumented |
Constant | EXPECTATION_FAILED |
Undocumented |
Constant | FAILED_DEPENDENCY |
Undocumented |
Constant | FORBIDDEN |
Undocumented |
Constant | FOUND |
Undocumented |
Constant | GATEWAY_TIMEOUT |
Undocumented |
Constant | GONE |
Undocumented |
Constant | HTTP_VERSION_NOT_SUPPORTED |
Undocumented |
Constant | IM_A_TEAPOT |
Undocumented |
Constant | IM_USED |
Undocumented |
Constant | INSUFFICIENT_STORAGE |
Undocumented |
Constant | INTERNAL_SERVER_ERROR |
Undocumented |
Constant | LENGTH_REQUIRED |
Undocumented |
Constant | LOCKED |
Undocumented |
Constant | LOOP_DETECTED |
Undocumented |
Constant | METHOD_NOT_ALLOWED |
Undocumented |
Constant | MISDIRECTED_REQUEST |
Undocumented |
Constant | MOVED_PERMANENTLY |
Undocumented |
Constant | MULTI_STATUS |
Undocumented |
Constant | MULTIPLE_CHOICES |
Undocumented |
Constant | NETWORK_AUTHENTICATION_REQUIRED |
Undocumented |
Constant | NO_CONTENT |
Undocumented |
Constant | NON_AUTHORITATIVE_INFORMATION |
Undocumented |
Constant | NOT_ACCEPTABLE |
Undocumented |
Constant | NOT_EXTENDED |
Undocumented |
Constant | NOT_FOUND |
Undocumented |
Constant | NOT_IMPLEMENTED |
Undocumented |
Constant | NOT_MODIFIED |
Undocumented |
Constant | OK |
Undocumented |
Constant | PARTIAL_CONTENT |
Undocumented |
Constant | PAYMENT_REQUIRED |
Undocumented |
Constant | PERMANENT_REDIRECT |
Undocumented |
Constant | PRECONDITION_FAILED |
Undocumented |
Constant | PRECONDITION_REQUIRED |
Undocumented |
Constant | PROCESSING |
Undocumented |
Constant | PROXY_AUTHENTICATION_REQUIRED |
Undocumented |
Constant | REQUEST_ENTITY_TOO_LARGE |
Undocumented |
Constant | REQUEST_HEADER_FIELDS_TOO_LARGE |
Undocumented |
Constant | REQUEST_TIMEOUT |
Undocumented |
Constant | REQUEST_URI_TOO_LONG |
Undocumented |
Constant | REQUESTED_RANGE_NOT_SATISFIABLE |
Undocumented |
Constant | RESET_CONTENT |
Undocumented |
Constant | SEE_OTHER |
Undocumented |
Constant | SERVICE_UNAVAILABLE |
Undocumented |
Constant | SWITCHING_PROTOCOLS |
Undocumented |
Constant | TEMPORARY_REDIRECT |
Undocumented |
Constant | TOO_EARLY |
Undocumented |
Constant | TOO_MANY_REQUESTS |
Undocumented |
Constant | UNAUTHORIZED |
Undocumented |
Constant | UNAVAILABLE_FOR_LEGAL_REASONS |
Undocumented |
Constant | UNPROCESSABLE_ENTITY |
Undocumented |
Constant | UNSUPPORTED_MEDIA_TYPE |
Undocumented |
Constant | UPGRADE_REQUIRED |
Undocumented |
Constant | USE_PROXY |
Undocumented |
Constant | VARIANT_ALSO_NEGOTIATES |
Undocumented |
Undocumented
Parameters | |
value:int | Undocumented |
Returns | |
str | Undocumented |
True
for 4xx status codes, False
otherwise.Parameters | |
value:int | Undocumented |
Returns | |
bool | Undocumented |
True
for 4xx or 5xx status codes, False
otherwise.Parameters | |
value:int | Undocumented |
Returns | |
bool | Undocumented |
True
for 1xx status codes, False
otherwise.Parameters | |
value:int | Undocumented |
Returns | |
bool | Undocumented |
True
for 3xx status codes, False
otherwise.Parameters | |
value:int | Undocumented |
Returns | |
bool | Undocumented |
True
for 5xx status codes, False
otherwise.Parameters | |
value:int | Undocumented |
Returns | |
bool | Undocumented |
True
for 2xx status codes, False
otherwise.Parameters | |
value:int | Undocumented |
Returns | |
bool | Undocumented |
Undocumented
Parameters | |
value:int | Undocumented |
phrase:str | Undocumented |
Returns | |
codes | Undocumented |