
    h                        d dl mZ d dlmZ dgZ G d de          ZeD ]/Z eeej        	                                 e
e                     0dS )    )annotations)IntEnumcodesc                     e Zd ZdZdQdRdZdSd	ZedTd
            ZedUd            ZedUd            Z	edUd            Z
edUd            ZedUd            ZedUd            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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+d0Z,d1Z-d2Z.d3Z/d4Z0d5Z1d6Z2d7Z3d8Z4d9Z5d:Z6d;Z7d<Z8d=Z9d>Z:d?Z;d@Z<dAZ=dBZ>dCZ?dDZ@dEZAdFZBdGZCdHZDdIZEdJZFdKZGdLZHdMZIdNZJdOZKdPS )Vr   aG  HTTP 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returnc                X    t                               | |          }||_        ||_        |S N)r	   __new___value_r
   )clsr   r
   objs       U/var/www/html/prod/cognitive/venv/lib/python3.11/site-packages/httpx/_status_codes.pyr   zcodes.__new__   s(    kk#u%%

    c                *    t          | j                  S r   )r   r   )selfs    r   __str__zcodes.__str__#   s    4:r   c                N    	 t          |          j        S # t          $ r Y dS w xY w)Nr   )r   r
   
ValueErrorr   r   s     r   get_reason_phrasezcodes.get_reason_phrase&   s8    	<<&& 	 	 	22	s    
$$boolc                "    d|cxk    odk    nc S )zI
        Returns `True` for 1xx status codes, `False` otherwise.
        d       r   s     r   is_informationalzcodes.is_informational-   &    
 e""""s"""""r   c                "    d|cxk    odk    nc S )zI
        Returns `True` for 2xx status codes, `False` otherwise.
           i+  r    r   s     r   
is_successzcodes.is_success4   r"   r   c                "    d|cxk    odk    nc S )zI
        Returns `True` for 3xx status codes, `False` otherwise.
        ,  i  r    r   s     r   is_redirectzcodes.is_redirect;   r"   r   c                "    d|cxk    odk    nc S )zI
        Returns `True` for 4xx status codes, `False` otherwise.
          i  r    r   s     r   is_client_errorzcodes.is_client_errorB   r"   r   c                "    d|cxk    odk    nc S )zI
        Returns `True` for 5xx status codes, `False` otherwise.
          W  r    r   s     r   is_server_errorzcodes.is_server_errorI   r"   r   c                "    d|cxk    odk    nc S )zP
        Returns `True` for 4xx or 5xx status codes, `False` otherwise.
        r*   r.   r    r   s     r   is_errorzcodes.is_errorP   r"   r   )r   Continue)e   zSwitching Protocols)f   
Processing)g   zEarly Hints)r$   OK)   Created)   Accepted)   zNon-Authoritative Information)   z
No Content)   zReset Content)   zPartial Content)   zMulti-Status)   zAlready Reported)   zIM Used)r'   zMultiple Choices)i-  zMoved Permanently)i.  Found)i/  z	See Other)i0  zNot Modified)i1  z	Use Proxy)i3  zTemporary Redirect)i4  zPermanent Redirect)r*   zBad Request)i  Unauthorized)i  zPayment Required)i  	Forbidden)i  z	Not Found)i  zMethod Not Allowed)i  zNot Acceptable)i  zProxy Authentication Required)i  zRequest Timeout)i  Conflict)i  Gone)i  zLength Required)i  zPrecondition Failed)i  zRequest Entity Too Large)i  zRequest-URI Too Long)i  zUnsupported Media Type)i  zRequested Range Not Satisfiable)i  zExpectation Failed)i  zI'm a teapot)i  zMisdirected Request)i  zUnprocessable Entity)i  Locked)i  zFailed Dependency)i  z	Too Early)i  zUpgrade Required)i  zPrecondition Required)i  zToo Many Requests)i  zRequest Header Fields Too Large)i  zUnavailable For Legal Reasons)r-   zInternal Server Error)i  zNot Implemented)i  zBad Gateway)i  zService Unavailable)i  zGateway Timeout)i  zHTTP Version Not Supported)i  zVariant Also Negotiates)i  zInsufficient Storage)i  zLoop Detected)i  zNot Extended)i  zNetwork Authentication RequiredN)r   )r   r	   r
   r   r   r   )r   r   )r   r	   r   r   )r   r	   r   r   )L__name__
__module____qualname____doc__r   r   classmethodr   r!   r%   r(   r+   r/   r1   CONTINUESWITCHING_PROTOCOLS
PROCESSINGEARLY_HINTSr7   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_REQUIREDr    r   r   r   r      s        &           [ # # # [# # # # [# # # # [# # # # [# # # # [# # # # [# 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###r   N)
__future__r   enumr   __all__r   codesetattr_name_lowerr	   r    r   r   <module>r      s    " " " " " "      )UM UM UM UM UMG UM UM UMr  3 3DGE4;$$&&D		22223 3r   