class _RawRCType(type): """Raw Status Codes""" RC_200 = readonly('200') RC_OK = readonly('200') RC_500 = readonly('500') RC_INTERNAL_ERROR = readonly('500') RC_403 = readonly('403') RC_FORBIDDEN = readonly('403') RC_503 = readonly('503') RC_SERVICE_UNAVAILABLE = readonly('503')
class _HttpMsgHdrType(type): """Http Message Header Names """ CONTENT = readonly('Content') CONTENT_TYPE = readonly('Content-Type') FROM = readonly('From') TO = readonly('To') REQ_ID = readonly('Req-Id') RESP_ID = readonly('Resp-Id')
class _HttpRCType(type): """HTTP Status Codes""" # 1xx codes RC_100 = readonly('100') RC_CONTINUE = readonly('100') RC_101 = readonly('101') RC_SWITCHING_PROTOCOLS = readonly('101') RC_102 = readonly('102') RC_PROCESSING = readonly('102') # 103-199 Unassigned # 2xx codes RC_200 = readonly('200') RC_OK = readonly('200') RC_201 = readonly('201') RC_CREATED = readonly('201') RC_202 = readonly('202') RC_ACCEPTED = readonly('202') RC_203 = readonly('203') RC_NON_AUTHORITATIVE_INFORMATION = readonly('203') RC_204 = readonly('204') RC_NO_CONTENT = readonly('204') RC_205 = readonly('205') RC_RESET_CONTENT = readonly('205') RC_206 = readonly('206') RC_PARTIAL_CONTENT = readonly('206') RC_207 = readonly('207') RC_MULTI_STATUS = readonly('207') RC_208 = readonly('208') RC_ALREADY_REPORTED = readonly('208') # 209-225 Unassigned RC_226 = readonly('226') RC_IM_USED = readonly('226') # 227-299 Unassigned # 3xx codes RC_300 = readonly('300') RC_MULTIPLE_CHOICES = readonly('300') RC_301 = readonly('301') RC_MOVED_PERMANENTLY = readonly('301') RC_302 = readonly('302') RC_FOUND = readonly('302') RC_303 = readonly('303') RC_SEE_OTHER = readonly('303') RC_304 = readonly('304') RC_NOT_MODIFIED = readonly('304') RC_305 = readonly('305') RC_USE_PROXY = readonly('305') # 306 Unassigned RC_307 = readonly('307') RC_TEMPORARY_REDIRECT = readonly('307') RC_308 = readonly('308') RC_PERMANENT_REDIRECT = readonly('308') # 309-399 Unassigned # 4xx codes RC_400 = readonly('400') RC_BAD_REQUEST = readonly('400') RC_401 = readonly('401') RC_UNAUTHORIZED = readonly('401') RC_402 = readonly('402') RC_PAYMENT_REQUIRED = readonly('402') RC_403 = readonly('403') RC_FORBIDDEN = readonly('403') RC_404 = readonly('404') RC_NOT_FOUND = readonly('404') RC_405 = readonly('405') RC_METHOD_NOT_ALLOWED = readonly('405') RC_406 = readonly('406') RC_NOT_ACCEPTABLE = readonly('406') RC_407 = readonly('407') RC_PROXY_AUTHENTICATION_REQUIRED = readonly('407') RC_408 = readonly('408') RC_REQUEST_TIMEOUT = readonly('408') RC_409 = readonly('409') RC_CONFLICT = readonly('409') RC_410 = readonly('410') RC_GONE = readonly('410') RC_411 = readonly('411') RC_LENGTH_REQUIRED = readonly('411') RC_412 = readonly('412') RC_PRECONDITION_FAILED = readonly('412') RC_413 = readonly('413') RC_PAYLOAD_TOO_LARGE = readonly('413') RC_414 = readonly('414') RC_URI_TOO_LONG = readonly('414') RC_415 = readonly('415') RC_UNSUPPORTED_MEDIA_TYPE = readonly('415') RC_416 = readonly('416') RC_REQUESTED_RANGE_NOT_SATISFIABLE = readonly('416') RC_417 = readonly('417') RC_EXPECTATION_FAILED = readonly('417') # 418-421 Unassigned RC_422 = readonly('422') RC_UNPROCESSABLE_ENTITY = readonly('422') RC_423 = readonly('423') RC_LOCKED = readonly('423') RC_424 = readonly('424') RC_FAILED_DEPENDENCY = readonly('424') # 425 Unassigned RC_426 = readonly('426') RC_UGRADE_REQUIRED = readonly('426') # 427 Unassigned RC_428 = readonly('428') RC_PRECONDITION_REQUIRED = readonly('428') RC_429 = readonly('429') RC_TOO_MANY_REQUESTS = readonly('429') # 430 Unassigned RC_431 = readonly('431') RC_REQUEST_HEADER_FIELDS_TOO_LARGE = readonly('431') # 432-499 Unassigned # 5xx codes RC_500 = readonly('500') RC_INTERNAL_SERVER_ERROR = readonly('500') RC_501 = readonly('501') RC_NOT_IMPLEMENTED = readonly('501') RC_502 = readonly('502') RC_BAD_GATEWAY = readonly('502') RC_503 = readonly('503') RC_SERVICE_UNAVAILABLE = readonly('503') RC_504 = readonly('504') RC_GATEWAY_TIMEOUT = readonly('504') RC_505 = readonly('505') RC_HTTP_VERSION_NOT_SUPPORTED = readonly('505') RC_506 = readonly('506') RC_VARIANT_ALSO_NEGOTIATES = readonly('506') RC_507 = readonly('507') RC_INSUFFICIENT_STORAGE = readonly('507') RC_508 = readonly('508') RC_LOOP_DETCTED = readonly('508') # 509 Unassigned RC_510 = readonly('510') RC_NOT_EXTENDED = readonly('510') RC_511 = readonly('511') RC_NETWORK_AUTHENTICATION_FAILED = readonly('511')
class _HttpRCDescrType(type): """HTTP Status Codes - Descriptive Text""" # 1xx codes RC_100 = readonly('Continue') RC_101 = readonly('Switching Protocols') RC_102 = readonly('Processing') # 103-199 Unassigned # 2xx codes RC_200 = readonly('OK') RC_201 = readonly('Created') RC_202 = readonly('Accepted') RC_203 = readonly('Non-Authoritative Information') RC_204 = readonly('No Content') RC_205 = readonly('Reset Content') RC_206 = readonly('Partial Content') RC_207 = readonly('Multi-Status') RC_208 = readonly('Already Supported') # 209-225 Unassigned RC_226 = readonly('IM Used') # 227-299 Unassigned # 3xx codes RC_300 = readonly('Mutliple Choices') RC_301 = readonly('Moved Permanently') RC_302 = readonly('Found') RC_303 = readonly('See Other') RC_304 = readonly('Not Modified') RC_305 = readonly('Use Proxy') RC_307 = readonly('Temporary Redirect') RC_308 = readonly('Permanent Redirect') # 309-399 Unassigned # 4xx codes RC_400 = readonly('Bad Request') RC_401 = readonly('Unauthorized') RC_402 = readonly('Payment Required') RC_403 = readonly('Forbidden') RC_404 = readonly('Not Found') RC_405 = readonly('Method Not Allowed') RC_406 = readonly('Not Acceptable') RC_407 = readonly('Proxy Authentication Required') RC_408 = readonly('Request Timeout') RC_409 = readonly('Conflict') RC_410 = readonly('Gone') RC_411 = readonly('Length Required') RC_412 = readonly('Precondition Failed') RC_413 = readonly('Payload Too Large') RC_414 = readonly('URI Too Long') RC_415 = readonly('Unsupported Media Type') RC_416 = readonly('Requested Range Not Satisfiable') RC_417 = readonly('Expectation Failed') # 418-421 Unassigned RC_422 = readonly('Unprocessable Entity') RC_423 = readonly('Locked') RC_424 = readonly('Failed Dependency') RC_426 = readonly('Upgrade Required') RC_428 = readonly('Precondition Failed') RC_429 = readonly('Too Many Requests') RC_431 = readonly('Request Header Fields Too Large') # 432-499 Unassigned # 5xx codes RC_500 = readonly('Internal Server Error') RC_501 = readonly('Not Implemented') RC_502 = readonly('Bad Gateway') RC_503 = readonly('Service Unavailable') RC_504 = readonly('Gateway Timeout') RC_505 = readonly('HTTP Version Not Supported') RC_506 = readonly('Variant Also Negotiates (Experimental)') RC_507 = readonly('Insufficient Storage') RC_508 = readonly('Loop Detected') RC_510 = readonly('Not Extended') RC_511 = readonly('Network Authentication Failed')
class _STMsgType(type): INIT = readonly('init') HELLO = readonly('hello') MGMT = readonly('mgmt') BYE = readonly('bye')
class _MsgType(type): """Msg Types""" REQ = readonly('REQ') RESP = readonly('RESP')
class _SipRCType(type): """SIP Status Codes""" # 1xx codes - Provisional RC_100 = readonly('100') RC_TRYING = readonly('100') # 101-179 Unassigned RC_180 = readonly('180') RC_RINGING = readonly('180') RC_181 = readonly('181') RC_CALL_IS_BEING_FRWARDED = readonly('181') RC_182 = readonly('182') RC_QUEUED = readonly('182') RC_183 = readonly('183') # 184-198 Unassigned RC_SESSION_PROGRESS = readonly('183') RC_199 = readonly('199') RC_EARLY_DIALOG_TERMINATED = readonly('199') # 2xx codes - successful RC_200 = readonly('200') RC_OK = readonly('200') # 201 Unassigned RC_202 = readonly('202') RC_ACCEPTED = readonly('202') # 203 Unassigned RC_204 = readonly('204') RC_NO_NOTIFICATION = readonly('204') # 205-299 Unassigned # 3xx codes - redirection RC_300 = readonly('300') RC_MULTIPLE_CHOICES = readonly('300') RC_301 = readonly('301') RC_MOVED_PERMANENTLY = readonly('301') RC_302 = readonly('302') RC_MOVED_TEMPORARILY = readonly('302') # 303-304 Unassigned RC_305 = readonly('305') RC_USE_PROXY = readonly('305') # 306-379 Unassigned RC_380 = readonly('380') RC_ALTERNATIVE_SERVICE = readonly('380') # 381-399 Unassigned # 4xx codes - request failure RC_400 = readonly('400') RC_BAD_REQUEST = readonly('400') RC_401 = readonly('401') RC_UNAUTHORIZED = readonly('401') RC_402 = readonly('402') RC_PAYMENT_REQUIRED = readonly('402') RC_403 = readonly('403') RC_FORBIDDEN = readonly('403') RC_404 = readonly('404') RC_NOT_FOUND = readonly('404') RC_405 = readonly('405') RC_METHOD_NOT_ALLOWED = readonly('405') RC_406 = readonly('406') RC_NOT_ACCEPTABLE = readonly('406') RC_407 = readonly('407') RC_PROXY_AUTHENTICATION_REQUIRED = readonly('407') RC_408 = readonly('408') RC_REQUEST_TIMEOUT = readonly('408') # 409 Unassigned RC_410 = readonly('410') RC_GONE = readonly('410') # 411 Unassigned RC_412 = readonly('412') RC_CONDITIONAL_REQUEST_FAILED = readonly('412') RC_413 = readonly('413') RC_REQUEST_ENTITY_TOO_LARGE = readonly('413') RC_414 = readonly('414') RC_REQUEST_URI_TOO_LONG = readonly('414') RC_415 = readonly('415') RC_UNSUPPORTED_MEDIA_TYPE = readonly('415') RC_416 = readonly('416') RC_UNSUPPORTED_URI_SCHEME = readonly('416') RC_417 = readonly('417') RC_UNKNOWN_RESOURCE_RPIORITY = readonly('417') # 418-419 Unassigned RC_420 = readonly('420') RC_BAD_EXGENSION = readonly('420') RC_421 = readonly('421') RC_EXTENSION_REQUIRED = readonly('421') RC_422 = readonly('422') RC_SESSION_INTERVAL_TOO_SMALL = readonly('422') RC_423 = readonly('423') RC_INTERVAL_TOO_BRIEF = readonly('423') RC_424 = readonly('424') RC_BAD_LOCATION_INFORMATION = readonly('424') # 425-427 Unassigned RC_428 = readonly('428') RC_USE_IDENTITY_HEADER = readonly('428') RC_429 = readonly('429') RC_REFERRER_IDENTITY = readonly('429') RC_430 = readonly('430') RC_FLOW_FAILED = readonly('430') # 431-432 Unassigned RC_433 = readonly('433') RC_ANONYMITY_DISALLOWED = readonly('433') # 434-435 Unassigned RC_436 = readonly('436') RC_BAD_IDENTITY_INFO = readonly('436') RC_437 = readonly('437') RC_UNSUPPORTED_CERTIFICATE = readonly('437') RC_438 = readonly('438') RC_INVALID_IDENTITY_HEADER = readonly('438') RC_439 = readonly('439') RC_FIRST_HOP_LACKS_OUTBOUND_SUPPORT = readonly('439') RC_440 = readonly('440') RC_MAX_BREATH_EXCEEDED = readonly('440') # 441-468 Unassigned RC_469 = readonly('469') RC_BAD_INFO_PACKAGE = readonly('469') RC_470 = readonly('470') RC_CONSENT_NEEDED = readonly('470') # 471-479 Unassigned RC_480 = readonly('480') RC_TEMPORARILY_UNAVAILABLE = readonly('480') RC_481 = readonly('481') RC_CALL_OR_TRANSACTION_DOESNOT_EXIST = readonly('481') RC_482 = readonly('482') RC_LOOP_DETECTED = readonly('482') RC_483 = readonly('483') RC_TOO_MANY_LOOPS = readonly('483') RC_484 = readonly('484') RC_ADDRESS_INCOMPLETE = readonly('484') RC_485 = readonly('485') RC_AMBIGUOUS = readonly('485') RC_486 = readonly('486') RC_BUSY_HERE = readonly('486') RC_487 = readonly('487') RC_REQUEST_TERMINATED = readonly('487') RC_488 = readonly('488') RC_NOT_ACCEPTABLE_HERE = readonly('488') RC_489 = readonly('489') RC_BAD_EVENT = readonly('489') # 490 Unassigned RC_491 = readonly('491') RC_REQUEST_PENDING = readonly('491') # 492 Unassigned RC_493 = readonly('493') RC_UNDECIPHERABLE = readonly('493') RC_494 = readonly('494') RC_SECURITY_AGREEMENT_REQUIRED = readonly('494') # 495-499 Unassigned # 5xx codes - server failure RC_500 = readonly('500') RC_INTERNAL_SERVER_ERROR = readonly('500') RC_501 = readonly('501') RC_NOT_IMPLEMENTED = readonly('501') RC_502 = readonly('502') RC_BAD_GATEWAY = readonly('502') RC_503 = readonly('503') RC_SERVICE_UNAVAILABLE = readonly('503') RC_504 = readonly('504') RC_SERVER_TIMEOUT = readonly('504') RC_505 = readonly('505') RC_VERSION_NOT_SUPPORTED = readonly('505') # 506-512 Unassigned RC_513 = readonly('513') RC_MESSAGE_TOO_LARGE = readonly('513') # 514-579 Unassigned RC_580 = readonly('580') RC_PRECONDITION_FAILURE = readonly('580') # 581-599 Unassigned # 6xx codes - global failure RC_600 = readonly('600') RC_BUSY_EVERYWHERE = readonly('600') # 601-602 Unassigned RC_603 = readonly('603') RC_DECLINE = readonly('603') RC_604 = readonly('604') RC_DOESNOT_EXIST_ANYWHERE = readonly('604') # 605 Unassigned RC_606 = readonly('606') RC_NOT_ACCEPTABLE = readonly('606')
class _SipRCDescrType(type): """SIP Status Codes - Descriptive Text""" # 1xx codes - provisional RC_100 = readonly('Trying') # 101-179 Unassigned RC_180 = readonly('Ringing') RC_181 = readonly('Call Is Being Forwarded') RC_182 = readonly('Queued') RC_183 = readonly('Session Progress') # 184-198 Unassigned RC_199 = readonly('Early Dialog Terminated') # 2xx codes - successful RC_200 = readonly('OK') # 201 Unassigned RC_202 = readonly('Accepted (Deprecated)') # 203 Unassigned RC_204 = readonly('No Notification') # 205-299 Unassigned # 3xx codes - redirection RC_300 = readonly('Mutliple Choices') RC_301 = readonly('Moved Permanently') RC_302 = readonly('Moved Temporarily') RC_305 = readonly('Use Proxy') RC_380 = readonly('Alternative Service') # 381-399 Unassigned # 4xx codes - request failure RC_400 = readonly('Bad Request') RC_401 = readonly('Unauthorized') RC_402 = readonly('Payment Required') RC_403 = readonly('Forbidden') RC_404 = readonly('Not Found') RC_405 = readonly('Method Not Allowed') RC_406 = readonly('Not Acceptable') RC_407 = readonly('Proxy Authentication Required') RC_408 = readonly('Request Timeout') # 409 Unassigned RC_410 = readonly('Gone') # 411 Unassigned RC_412 = readonly('Conditiona Request Failed') RC_413 = readonly('Request Entity Too Large') RC_414 = readonly('Request-URI Too Long') RC_415 = readonly('Unsupported Media Type') RC_416 = readonly('Unsupported URI Scheme') RC_417 = readonly('Unknown Resoource-Priority') # 418-419 Unassigned RC_420 = readonly('Bad Extension') RC_421 = readonly('Extension Required') RC_422 = readonly('Session Interval Too Small') RC_423 = readonly('Interval Too Brief') RC_424 = readonly('Bad Location Information') # 425-427 Unassigned RC_428 = readonly('Use Identity Header') RC_429 = readonly('Provide Referrer Identity') RC_430 = readonly('Flow Failed') # 431-432 Unassigned RC_433 = readonly('Anonymity Disallowed') # 434-435 Unassigned RC_436 = readonly('Bad Identity-info') RC_437 = readonly('Unsupported Certificateinfo') RC_438 = readonly('Invalid Identity Header') RC_439 = readonly('First Hop Lacks Outbound Support') RC_440 = readonly('Max-Breadth Exceeded') RC_469 = readonly('Bad Info Package') RC_470 = readonly('Consent Needed') # 471-479 Unassigned RC_480 = readonly('Temprorarily Unavailable') RC_481 = readonly('Call/Transaction Does Not Exist') RC_482 = readonly('Loop Detected') RC_483 = readonly('Too Many Hops') RC_484 = readonly('Address Incomplete') RC_485 = readonly('Ambiguous') RC_486 = readonly('Busy Here') RC_487 = readonly('Request Terminated') RC_488 = readonly('Not Acceptable Here') RC_489 = readonly('Bad Event') RC_491 = readonly('Request Pending') RC_493 = readonly('Undecipherable') RC_494 = readonly('Security Agreement Required') # 495-499 Unassigned # 5xx codes RC_500 = readonly('Internal Server Error') RC_501 = readonly('Not Implemented') RC_502 = readonly('Bad Gateway') RC_503 = readonly('Service Unavailable') RC_504 = readonly('Server Timeout') RC_505 = readonly('Version Not Supported') # 506-512 Unassigned RC_513 = readonly('Message Too Large') # 514-579 Unassigned RC_580 = readonly('Precondition Failure') # 581-599 Unassigned # 6xx codes RC_600 = readonly('Busy Everywhere') # 601-602 Unassigned RC_603 = readonly('Decline') RC_604 = readonly('Does Bot Exist Anywhere') # 605 Unassigned RC_606 = readonly('Not Acceptable')
class _RawRCDescrType(type): """Raw Status Codes - Descriptive Text""" RC_200 = readonly('Success') RC_500 = readonly('Failure : Internal Server Error') RC_403 = readonly('Forbidden') RC_503 = readonly('Service Unavailable')