LENGTH_REQUIRED = _HTTPStatus(411, 'Length Required', 'Client must specify Content-Length') PRECONDITION_FAILED = _HTTPStatus(412, 'Precondition Failed', 'Precondition in headers is false') REQUEST_ENTITY_TOO_LARGE = _HTTPStatus(413, 'Request Entity Too Large', 'Entity is too large') REQUEST_URI_TOO_LONG = _HTTPStatus(414, 'Request-URI Too Long', 'URI is too long') UNSUPPORTED_MEDIA_TYPE = _HTTPStatus(415, 'Unsupported Media Type', 'Entity body in unsupported format') REQUESTED_RANGE_NOT_SATISFIABLE = _HTTPStatus(416, 'Requested Range Not Satisfiable', 'Cannot satisfy request range') EXPECTATION_FAILED = _HTTPStatus(417, 'Expectation Failed', 'Expect condition could not be satisfied') MISDIRECTED_REQUEST = _HTTPStatus(421, 'Misdirected Request', 'Server is not able to produce a response') UNPROCESSABLE_ENTITY = _HTTPStatus(422, 'Unprocessable Entity') LOCKED = _HTTPStatus(423, 'Locked') FAILED_DEPENDENCY = _HTTPStatus(424, 'Failed Dependency') UPGRADE_REQUIRED = _HTTPStatus(426, 'Upgrade Required') PRECONDITION_REQUIRED = _HTTPStatus(428, 'Precondition Required', 'The origin server requires the request to be conditional') TOO_MANY_REQUESTS = _HTTPStatus(429, 'Too Many Requests', 'The user has sent too many requests in ' 'a given amount of time ("rate limiting")') REQUEST_HEADER_FIELDS_TOO_LARGE = _HTTPStatus(431, 'Request Header Fields Too Large', 'The server is unwilling to process the request because its header ' 'fields are too large') UNAVAILABLE_FOR_LEGAL_REASONS = _HTTPStatus(451, 'Unavailable For Legal Reasons', 'The server is denying access to the ' 'resource as a consequence of a legal demand') INTERNAL_SERVER_ERROR = _HTTPStatus(500, 'Internal Server Error', 'Server got itself in trouble') NOT_IMPLEMENTED = _HTTPStatus(501, 'Not Implemented', 'Server does not support this operation') BAD_GATEWAY = _HTTPStatus(502, 'Bad Gateway', 'Invalid responses from another server/proxy') SERVICE_UNAVAILABLE = _HTTPStatus(503, 'Service Unavailable', 'The server cannot process the request due to a high load') GATEWAY_TIMEOUT = _HTTPStatus(504, 'Gateway Timeout', 'The gateway server did not receive a timely response') HTTP_VERSION_NOT_SUPPORTED = _HTTPStatus(505, 'HTTP Version Not Supported', 'Cannot fulfill request') VARIANT_ALSO_NEGOTIATES = _HTTPStatus(506, 'Variant Also Negotiates') INSUFFICIENT_STORAGE = _HTTPStatus(507, 'Insufficient Storage') LOOP_DETECTED = _HTTPStatus(508, 'Loop Detected') NOT_EXTENDED = _HTTPStatus(510, 'Not Extended') NETWORK_AUTHENTICATION_REQUIRED = _HTTPStatus(511, 'Network Authentication Required', 'The client needs to authenticate to gain network access') )