a c@sdZddlZddlmZdZdZdZdZdZd Z d Z d Z d Z d Z dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Z d!Z!d"Z"d#Z#d$Z$d%Z%d&Z&d'Z'd(Z(d)Z)d*Z*d+Z+d,Z,d-Z-d.Z.d/Z/d0Z0d1Z1d2Z2d3Z3d4Z4d5Z5d6Z6d7Z7d8Z8d9Z9d:Z:d;Z;dZ>d?Z?d@Z@dAZAdBZBdCZCdDZDdEZEdFZFdGZGdHZHdIZIdJZJdKZKdLZLdMZMdNZNdOZOdPZPdQZQdRZRdSdHdTZSeTeUdUdVdWZVeeTdXdYdZZWdS)[z HTTP codes See HTTP Status Code Registry: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml And RFC 2324 - https://tools.ietf.org/html/rfc2324 N)List)NHTTP_100_CONTINUEHTTP_101_SWITCHING_PROTOCOLSHTTP_102_PROCESSINGHTTP_103_EARLY_HINTS HTTP_200_OKHTTP_201_CREATEDHTTP_202_ACCEPTED&HTTP_203_NON_AUTHORITATIVE_INFORMATIONHTTP_204_NO_CONTENTHTTP_205_RESET_CONTENTHTTP_206_PARTIAL_CONTENTHTTP_207_MULTI_STATUSHTTP_208_ALREADY_REPORTEDHTTP_226_IM_USEDHTTP_300_MULTIPLE_CHOICESHTTP_301_MOVED_PERMANENTLYHTTP_302_FOUNDHTTP_303_SEE_OTHERHTTP_304_NOT_MODIFIEDHTTP_305_USE_PROXYHTTP_306_RESERVEDHTTP_307_TEMPORARY_REDIRECTHTTP_308_PERMANENT_REDIRECTHTTP_400_BAD_REQUESTHTTP_401_UNAUTHORIZEDHTTP_402_PAYMENT_REQUIREDHTTP_403_FORBIDDENHTTP_404_NOT_FOUNDHTTP_405_METHOD_NOT_ALLOWEDHTTP_406_NOT_ACCEPTABLE&HTTP_407_PROXY_AUTHENTICATION_REQUIREDHTTP_408_REQUEST_TIMEOUTHTTP_409_CONFLICT HTTP_410_GONEHTTP_411_LENGTH_REQUIREDHTTP_412_PRECONDITION_FAILED!HTTP_413_REQUEST_ENTITY_TOO_LARGEHTTP_414_REQUEST_URI_TOO_LONGHTTP_415_UNSUPPORTED_MEDIA_TYPE(HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLEHTTP_417_EXPECTATION_FAILEDHTTP_418_IM_A_TEAPOTHTTP_421_MISDIRECTED_REQUESTHTTP_422_UNPROCESSABLE_ENTITYHTTP_423_LOCKEDHTTP_424_FAILED_DEPENDENCYHTTP_425_TOO_EARLYHTTP_426_UPGRADE_REQUIREDHTTP_428_PRECONDITION_REQUIREDHTTP_429_TOO_MANY_REQUESTS(HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE&HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONSHTTP_500_INTERNAL_SERVER_ERRORHTTP_501_NOT_IMPLEMENTEDHTTP_502_BAD_GATEWAYHTTP_503_SERVICE_UNAVAILABLEHTTP_504_GATEWAY_TIMEOUT#HTTP_505_HTTP_VERSION_NOT_SUPPORTED HTTP_506_VARIANT_ALSO_NEGOTIATESHTTP_507_INSUFFICIENT_STORAGEHTTP_508_LOOP_DETECTEDHTTP_510_NOT_EXTENDED(HTTP_511_NETWORK_AUTHENTICATION_REQUIREDWS_1000_NORMAL_CLOSUREWS_1001_GOING_AWAYWS_1002_PROTOCOL_ERRORWS_1003_UNSUPPORTED_DATAWS_1005_NO_STATUS_RCVDWS_1006_ABNORMAL_CLOSURE"WS_1007_INVALID_FRAME_PAYLOAD_DATAWS_1008_POLICY_VIOLATIONWS_1009_MESSAGE_TOO_BIGWS_1010_MANDATORY_EXTWS_1011_INTERNAL_ERRORWS_1012_SERVICE_RESTARTWS_1013_TRY_AGAIN_LATERWS_1014_BAD_GATEWAYWS_1015_TLS_HANDSHAKEdefgi,i-i.i/i0i1i2i3i4iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiZWS_1004_NO_STATUS_RCVDZWS_1005_ABNORMAL_CLOSURE)namereturncCsXddd}t|}|r>tjd|d||dtdd|Std td |ddS) NrFrGr_'z' is deprecated. Use 'z ' instead.)category stacklevelzmodule 'z' has no attribute ')__deprecated__getwarningswarnDeprecationWarningAttributeError__name__)r`Zdeprecation_changes deprecatedrn]/workspaces/shunt/resources/test-fastapi/venv/lib/python3.9/site-packages/starlette/status.py __getattr__s rp)racCstttttS)N)sortedlist__all__rfkeysrnrnrnro__dir__sru)X__doc__rhtypingrrsrrrrrrr r r r r rrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKrLrMrNrOrPrfstrintrprurnrnrnros Q