StatusCode module

class message.StatusCode.StatusCode(value)

Bases: enum.Enum

Responsible for encapsulating the different http status codes

ACCEPTED = ['202', 'Accepted']
BAD_GATEWAY = ['502', 'Bad Gateway']
BAD_REQUEST = ['400', 'Bad Request']
CREATED = ['201', 'Created']
GATEWAY_TIMEOUT = ['504', 'Gateway Timeout']
HTTP_VERSION_NOT_SUPPORTED = ['505', 'HTTP Version Not Supported']
INTERNAL_SERVER_ERROR = ['500', 'Internal Server Error']
MOVED_PERMANENTLY = ['301', 'Moved Permanently']
MULTIPLE_CHOICES = ['300', 'Multiple Choices']
NON_AUTHORITATIVE_INFORMATION = ['203', 'Non-Authoritative Information']
NOT_FOUND = ['404', 'Not Found', 'Page not found']
NOT_IMPLEMENTED = ['501', 'Not Implemented']
NOT_MODIFIED = ['304', 'Not Modified']
OK = ['200', 'OK']
REQUEST_TIMEOUT = ['408', 'Request Timeout']
RESET_CONTENT = ['205', 'Reset Content']
UNSUPPORTED_MEDIA_TYPE = ['415', 'Unsupported Media Type']