HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/.local/lib/python3.10/site-packages/httpx/__pycache__/_status_codes.cpython-310.pyc
o

���g�@sRddlmZddlmZdgZGdd�de�ZeD]
Zeeej�	�e
e��qdS)�)�annotations)�IntEnum�codesc@s�eZdZdZdZd[dd	�Zd\d
d�Zed]dd
��Zed^dd��Zed^dd��Z	ed^dd��Z
ed^dd��Zed^dd��Zed^dd��Z
dZdZdZdZdZd Zd!Zd"Zd#Zd$Zd%Zd&Zd'Zd(Zd)Zd*Zd+Zd,Zd-Z d.Z!d/Z"d0Z#d1Z$d2Z%d3Z&d4Z'd5Z(d6Z)d7Z*d8Z+d9Z,d:Z-d;Z.d<Z/d=Z0d>Z1d?Z2d@Z3dAZ4dBZ5dCZ6dDZ7dEZ8dFZ9dGZ:dHZ;dIZ<dJZ=dKZ>dLZ?dMZ@dNZAdOZBdPZCdQZDdRZEdSZFdTZGdUZHdVZIdWZJdXZKdYS)_raGHTTP 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
    ��value�int�phrase�str�returncCst�||�}||_||_|S�N)r�__new__�_value_r)�clsrr�obj�r�F/home/arjun/.local/lib/python3.10/site-packages/httpx/_status_codes.pyrsz
codes.__new__cCs
t|j�Sr)r	r)�selfrrr�__str__#s
z
codes.__str__cCs"zt|�jWStyYdSw)Nr)rr�
ValueError�rrrrr�get_reason_phrase&s
�zcodes.get_reason_phrase�boolcC�d|ko	dkSS)zI
        Returns `True` for 1xx status codes, `False` otherwise.
        �d��rrrrr�is_informational-�zcodes.is_informationalcCr)zI
        Returns `True` for 2xx status codes, `False` otherwise.
        ��i+rrrrr�
is_success4rzcodes.is_successcCr)zI
        Returns `True` for 3xx status codes, `False` otherwise.
        �,i�rrrrr�is_redirect;rzcodes.is_redirectcCr)zI
        Returns `True` for 4xx status codes, `False` otherwise.
        �i�rrrrr�is_client_errorBrzcodes.is_client_errorcCr)zI
        Returns `True` for 5xx status codes, `False` otherwise.
        ���Wrrrrr�is_server_errorIrzcodes.is_server_errorcCr)zP
        Returns `True` for 4xx or 5xx status codes, `False` otherwise.
        r!r$rrrrr�is_errorPrzcodes.is_error)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)rzMultiple 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)rrrr	r
r)r
r	)rrr
r	)rrr
r)L�__name__�
__module__�__qualname__�__doc__rr�classmethodrrrr r"r%r&�CONTINUE�SWITCHING_PROTOCOLS�
PROCESSING�EARLY_HINTSr,�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�
N)�
__future__r�enumr�__all__r�code�setattr�_name_�lowerrrrrr�<module>s�