
    Yj                        d dl mZ d dlZd dlmZmZ dgZddddd	Z G d
 de      Z G d dee      Z	e	j                  j                         D ]#  \  ZZ ee	ej                          ee             % y)    )annotationsN)EnumMetaIntEnumcodesCONTENT_TOO_LARGEURI_TOO_LONGRANGE_NOT_SATISFIABLEUNPROCESSABLE_CONTENT)REQUEST_ENTITY_TOO_LARGEREQUEST_URI_TOO_LONGREQUESTED_RANGE_NOT_SATISFIABLEUNPROCESSABLE_ENTITYc                        e Zd Zd fdZ xZS )
_CodesMetac                    |t         v r,t         |   }t        j                  d| d| dt        d       t        |   |      S )N'z' is deprecated. Use 'z
' instead.   )category
stacklevel)_DEPRECATED_CODESwarningswarnDeprecationWarningsuper__getattribute__)clsnamenew_name	__class__s      S/var/www/html/vmm-quimica/venv/lib/python3.12/site-packages/httpx2/_status_codes.pyr   z_CodesMeta.__getattribute__   sM    $$(.HMMD6/zD+
 w'--    )r   strreturnobject)__name__
__module____qualname__r   __classcell__)r   s   @r    r   r      s    . .r!   r   c                     e Zd ZdZdJdKdZdLdZedMd       ZedNd       ZedNd       Z	edNd       Z
edNd       ZedNd	       ZedNd
       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+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@ZCdAZDdBZEdCZFdDZGdEZHdFZIdGZJdHZKe1ZLe2ZMe4ZNe8ZOyI)Or   a  HTTP status codes and reason phrases

    Status codes from the following RFCs are all observed:

        * RFC 9110: HTTP Semantics, obsoletes 7231 & 7238
        * 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 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    t         j                  | |      }||_        ||_        |S N)int__new___value_phrase)r   valuer/   objs       r    r-   zcodes.__new__1   s%    kk#u%

r!   c                ,    t        | j                        S r+   )r"   r0   )selfs    r    __str__zcodes.__str__8   s    4::r!   c                L    	 t        |      j                  S # t        $ r Y yw xY w)N )r   r/   
ValueErrorr   r0   s     r    get_reason_phrasezcodes.get_reason_phrase;   s)    	<&&& 		s    	##c                "    d|cxk  xr dk  S c S )zI
        Returns `True` for 1xx status codes, `False` otherwise.
        d       r8   s     r    is_informationalzcodes.is_informationalB       
 e"s""""r!   c                "    d|cxk  xr dk  S c S )zI
        Returns `True` for 2xx status codes, `False` otherwise.
           i+  r=   r8   s     r    
is_successzcodes.is_successI   r?   r!   c                "    d|cxk  xr dk  S c S )zI
        Returns `True` for 3xx status codes, `False` otherwise.
        ,  i  r=   r8   s     r    is_redirectzcodes.is_redirectP   r?   r!   c                "    d|cxk  xr dk  S c S )zI
        Returns `True` for 4xx status codes, `False` otherwise.
          i  r=   r8   s     r    is_client_errorzcodes.is_client_errorW   r?   r!   c                "    d|cxk  xr dk  S c S )zI
        Returns `True` for 5xx status codes, `False` otherwise.
          W  r=   r8   s     r    is_server_errorzcodes.is_server_error^   r?   r!   c                "    d|cxk  xr dk  S c S )zP
        Returns `True` for 4xx or 5xx status codes, `False` otherwise.
        rG   rK   r=   r8   s     r    is_errorzcodes.is_errore   r?   r!   )r;   Continue)e   zSwitching Protocols)f   
Processing)g   zEarly Hints)rA   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)rD   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)rG   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Content Too Large)i  zURI Too Long)i  zUnsupported Media Type)i  zRange Not Satisfiable)i  zExpectation Failed)i  zI'm a teapot)i  zMisdirected Request)i  zUnprocessable Content)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)rJ   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)r6   )r0   r,   r/   r"   r#   r   )r#   r"   )r0   r,   r#   r"   )r0   r,   r#   bool)Pr%   r&   r'   __doc__r-   r4   classmethodr9   r>   rB   rE   rH   rL   rN   CONTINUESWITCHING_PROTOCOLS
PROCESSINGEARLY_HINTSrT   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_FAILEDr   r   UNSUPPORTED_MEDIA_TYPEr	   EXPECTATION_FAILEDIM_A_TEAPOTMISDIRECTED_REQUESTr
   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=   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0&L:82%K48F0 I.80&L#$H! 9,O$K4,O!B<6(M&L&L#  1'&;#0r!   )	metaclass)
__future__r   r   enumr   r   __all__r   r   r   __members__itemsr   codesetattrlowerr,   r=   r!   r    <module>r      s    "  ")
 !4*'>3	 	. 	.Z1Gz Z1| ##))+ ,JD$E4::<T+,r!   