o
    ùT·já  ã                   @  sˆ   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„ deƒZG dd„ deed�Z	e	j
 ¡ D ]\ZZee	e ¡ eeƒƒ q3dS )é    )Ú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                      s   e Zd Zd‡ fdd„Z‡  ZS )Ú
_CodesMetaÚnameÚstrÚreturnÚobjectc                   s:   |t v rt | }tjd|› d|› d�tdd� tƒ  |¡S )Nú'z' is deprecated. Use 'z
' instead.é   )ÚcategoryÚ
stacklevel)Ú_DEPRECATED_CODESÚwarningsÚwarnÚDeprecationWarningÚsuperÚ__getattribute__)Úclsr   Únew_name©Ú	__class__© úW/home/dinkstrade/pdmp-scanner/venv/lib/python3.10/site-packages/httpx2/_status_codes.pyr      s   ýz_CodesMeta.__getattribute__)r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__r   Ú__classcell__r!   r!   r   r"   r      s    r   c                   @  s�  e Zd ZdZdZd[dd	„Zd\d
d„Zed]dd„ƒZed^dd„ƒZed^dd„ƒZ	ed^dd„ƒZ
ed^dd„ƒZed^dd„ƒZed^d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&d4Z'd5Z(d6Z)d7Z*d8Z+d9Z,d:Z-d;Z.d<Z/d=Z0d>Z1d?Z2d@Z3dAZ4dBZ5dCZ6dDZ7dEZ8dFZ9dGZ:dHZ;dIZ<dJZ=dKZ>dLZ?dMZ@dNZAdOZBdPZCdQZDdRZEdSZFdTZGdUZHdVZIdWZJdXZKe1ZLe2ZMe4ZNe8ZOdYS )_r   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
    Ú ÚvalueÚintÚphraser   r   c                 C  s   t  | |¡}||_||_|S ©N)r)   Ú__new__Ú_value_r*   )r   r(   r*   Úobjr!   r!   r"   r,   1   s   zcodes.__new__c                 C  s
   t | jƒS r+   )r   r(   )Úselfr!   r!   r"   Ú__str__8   s   
zcodes.__str__c                 C  s"   zt |ƒjW S  ty   Y dS w )Nr'   )r   r*   Ú
ValueError©r   r(   r!   r!   r"   Úget_reason_phrase;   s
   ÿzcodes.get_reason_phraseÚboolc                 C  ó   d|  ko	dkS   S )zI
        Returns `True` for 1xx status codes, `False` otherwise.
        éd   éÇ   r!   r2   r!   r!   r"   Úis_informationalB   ó   zcodes.is_informationalc                 C  r5   )zI
        Returns `True` for 2xx status codes, `False` otherwise.
        éÈ   i+  r!   r2   r!   r!   r"   Ú
is_successI   r9   zcodes.is_successc                 C  r5   )zI
        Returns `True` for 3xx status codes, `False` otherwise.
        é,  i�  r!   r2   r!   r!   r"   Úis_redirectP   r9   zcodes.is_redirectc                 C  r5   )zI
        Returns `True` for 4xx status codes, `False` otherwise.
        é�  ió  r!   r2   r!   r!   r"   Úis_client_errorW   r9   zcodes.is_client_errorc                 C  r5   )zI
        Returns `True` for 5xx status codes, `False` otherwise.
        éô  éW  r!   r2   r!   r!   r"   Úis_server_error^   r9   zcodes.is_server_errorc                 C  r5   )zP
        Returns `True` for 4xx or 5xx status codes, `False` otherwise.
        r>   rA   r!   r2   r!   r!   r"   Úis_errore   r9   zcodes.is_error)r6   Ú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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)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   r4   )Pr#   r$   r%   Ú__doc__r,   r0   Úclassmethodr3   r8   r;   r=   r?   rB   rC   ÚCONTINUEÚSWITCHING_PROTOCOLSÚ
PROCESSINGÚEARLY_HINTSrI   Ú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¨    
)Ú	metaclass)Ú
__future__r   r   Úenumr   r   Ú__all__r   r   r   Ú__members__Úitemsr   ÚcodeÚsetattrÚlowerr)   r!   r!   r!   r"   Ú<module>   s    ü ÿ