← back to Atmos Game

assets/gen/.venv/lib/python3.12/site-packages/httpx/__pycache__/_status_codes.cpython-312.pyc

48 lines

�

c�bj���ddlmZddlmZdgZGd�de�ZeD]*Zeeejj�e
e���,y)�)�annotations)�IntEnum�codesc��eZdZdZdJdKd�ZdLd�ZedMd��ZedNd��ZedNd��Z	edNd��Z
edNd��ZedNd	��ZedNd
��Z
dZdZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"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-Z0d.Z1d/Z2d0Z3d1Z4d2Z5d3Z6d4Z7d5Z8d6Z9d7Z:d8Z;d9Z<d:Z=d;Z>d<Z?d=Z@d>ZAd?ZBd@ZCdAZDdBZEdCZFdDZGdEZHdFZIdGZJdHZKyI)OraGHTTP 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
    c�N�tj||�}||_||_|S�N)�int�__new__�_value_�phrase)�cls�valuer�objs    �j/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/httpx/_status_codes.pyr
z
codes.__new__s%���k�k�#�u�%�������
��
�c�,�t|j�Sr)�strr)�selfs r�__str__z
codes.__str__#s���4�:�:��rc�L�	t|�jS#t$rYywxYw)N�)rr�
ValueError�r
rs  r�get_reason_phrasezcodes.get_reason_phrase&s)��	���<�&�&�&���	��	�s��	#�#c�"�d|cxkxrdkScS)zI
        Returns `True` for 1xx status codes, `False` otherwise.
        �d���rs  r�is_informationalzcodes.is_informational-���
�e�"�s�"�"�"�"rc�"�d|cxkxrdkScS)zI
        Returns `True` for 2xx status codes, `False` otherwise.
        ��i+rrs  r�
is_successzcodes.is_success4r rc�"�d|cxkxrdkScS)zI
        Returns `True` for 3xx status codes, `False` otherwise.
        �,i�rrs  r�is_redirectzcodes.is_redirect;r rc�"�d|cxkxrdkScS)zI
        Returns `True` for 4xx status codes, `False` otherwise.
        �i�rrs  r�is_client_errorzcodes.is_client_errorBr rc�"�d|cxkxrdkScS)zI
        Returns `True` for 5xx status codes, `False` otherwise.
        ���Wrrs  r�is_server_errorzcodes.is_server_errorIr rc�"�d|cxkxrdkScS)zP
        Returns `True` for 4xx or 5xx status codes, `False` otherwise.
        r(r,rrs  r�is_errorzcodes.is_errorPr r)r�Continue)�ezSwitching Protocols)�f�
Processing)�gzEarly Hints)r"�OK)���Created)���Accepted)��zNon-Authoritative Information)��z
No Content)��z
Reset Content)��zPartial Content)��zMulti-Status)��zAlready Reported)��zIM Used)r%zMultiple Choices)i-zMoved Permanently)i.�Found)i/z	See Other)i0zNot Modified)i1z	Use Proxy)i3zTemporary Redirect)i4zPermanent Redirect)r(zBad Request)i��Unauthorized)i�zPayment Required)i��	Forbidden)i�z	Not Found)i�zMethod Not Allowed)i�zNot Acceptable)i�zProxy Authentication Required)i�zRequest Timeout)i��Conflict)i��Gone)i�zLength Required)i�zPrecondition Failed)i�zRequest Entity Too Large)i�zRequest-URI Too Long)i�zUnsupported Media Type)i�zRequested Range Not Satisfiable)i�zExpectation Failed)i�zI'm a teapot)i�zMisdirected Request)i�zUnprocessable Entity)i��Locked)i�zFailed Dependency)i�z	Too Early)i�zUpgrade Required)i�zPrecondition Required)i�zToo Many Requests)i�zRequest Header Fields Too Large)i�zUnavailable For Legal Reasons)r+zInternal Server Error)i�zNot Implemented)i�zBad Gateway)i�zService Unavailable)i�zGateway Timeout)i�zHTTP Version Not Supported)i�zVariant Also Negotiates)i�zInsufficient Storage)i�z
Loop Detected)i�zNot Extended)i�zNetwork Authentication RequiredN)r)rr	rr�returnr)rGr)rr	rGr)rr	rG�bool)L�__name__�
__module__�__qualname__�__doc__r
r�classmethodrrr#r&r)r-r/�CONTINUE�SWITCHING_PROTOCOLS�
PROCESSING�EARLY_HINTSr5�CREATED�ACCEPTED�NON_AUTHORITATIVE_INFORMATION�
NO_CONTENT�
RESET_CONTENT�PARTIAL_CONTENT�MULTI_STATUS�ALREADY_REPORTED�IM_USED�MULTIPLE_CHOICES�MOVED_PERMANENTLY�FOUND�	SEE_OTHER�NOT_MODIFIED�	USE_PROXY�TEMPORARY_REDIRECT�PERMANENT_REDIRECT�BAD_REQUEST�UNAUTHORIZED�PAYMENT_REQUIRED�	FORBIDDEN�	NOT_FOUND�METHOD_NOT_ALLOWED�NOT_ACCEPTABLE�PROXY_AUTHENTICATION_REQUIRED�REQUEST_TIMEOUT�CONFLICT�GONE�LENGTH_REQUIRED�PRECONDITION_FAILED�REQUEST_ENTITY_TOO_LARGE�REQUEST_URI_TOO_LONG�UNSUPPORTED_MEDIA_TYPE�REQUESTED_RANGE_NOT_SATISFIABLE�EXPECTATION_FAILED�IM_A_TEAPOT�MISDIRECTED_REQUEST�UNPROCESSABLE_ENTITY�LOCKED�FAILED_DEPENDENCY�	TOO_EARLY�UPGRADE_REQUIRED�PRECONDITION_REQUIRED�TOO_MANY_REQUESTS�REQUEST_HEADER_FIELDS_TOO_LARGE�UNAVAILABLE_FOR_LEGAL_REASONS�INTERNAL_SERVER_ERROR�NOT_IMPLEMENTED�BAD_GATEWAY�SERVICE_UNAVAILABLE�GATEWAY_TIMEOUT�HTTP_VERSION_NOT_SUPPORTED�VARIANT_ALSO_NEGOTIATES�INSUFFICIENT_STORAGE�
LOOP_DETECTED�NOT_EXTENDED�NETWORK_AUTHENTICATION_REQUIREDrrrrrs����&�������#��#��#��#��#��#��#��#��#��#��#��#��H�4��"�J�$�K�
�B��G��H�$H�!�"�J�(�M�,�O�&�L�.���G�/��0���E� �I�&�L� �I�2��2��%�K�&�L�.�� �I� �I�2��*�N�$H�!�,�O��H��D�,�O�4��>��6��:��&L�#�2��%�K�4��6��
�F�0�� �I�.��8��0��&L�#�$H�!�9��,�O�$�K�4��,�O�!B��<��6��(�M�&�L�&L�#rN)�
__future__r�enumr�__all__r�code�setattr�_name_�lowerr	rrr�<module>r�sL��"���)��UM�G�UM�r
�D��E�4�;�;�$�$�&��D�	�2�
r