o
    Eh=                     @   sD   d dl mZ G dd deZeZeD ]Zeeej ee qdS )    )IntEnumc                   @   s  e Zd ZdZdQdededd fddZdefdd	Zededefd
dZ	edede
fddZedede
fddZedede
fddZedede
f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#d)Z$d*Z%d+Z&d,Z'd-Z(d.Z)d/Z*d0Z+d1Z,d2Z-d3Z.d4Z/d5Z0d6Z1d7Z2d8Z3d9Z4d:Z5d;Z6d<Z7d=Z8d>Z9d?Z:d@Z;dAZ<dBZ=dCZ>dDZ?dEZ@dFZAdGZBdHZCdIZDdJZEdKZFdLZGdMZHdNZIdOZJdPS )R
StatusCodea  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
     valuephrasereturnc                 C   s   t | |}||_||_|S N)int__new___value_r   )clsr   r   obj r   N/var/www/html/env_mimamsha/lib/python3.10/site-packages/httpx/_status_codes.pyr
      s   zStatusCode.__new__c                 C   s
   t | jS r   )strr   )selfr   r   r   __str__   s   
zStatusCode.__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StatusCode.get_reason_phrasec                 C   s   |t jt jt jt jt jfv S r   )r   MOVED_PERMANENTLYFOUND	SEE_OTHERTEMPORARY_REDIRECTPERMANENT_REDIRECTr   r   r   r   is_redirect%   s   zStatusCode.is_redirectc                 C      d|  ko	dkS   S )N  W  r   r   r   r   r   is_error4      zStatusCode.is_errorc                 C   r   )Nr   i  r   r   r   r   r   is_client_error8   r    zStatusCode.is_client_errorc                 C   r   )N  r   r   r   r   r   r   is_server_error<   r    zStatusCode.is_server_error)d   Continue)e   zSwitching Protocols)f   
Processing)   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)i,  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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   )K__name__
__module____qualname____doc__r	   r   r
   r   classmethodr   boolr   r   r!   r#   CONTINUESWITCHING_PROTOCOLS
PROCESSINGr*   CREATEDACCEPTEDNON_AUTHORITATIVE_INFORMATION
NO_CONTENTRESET_CONTENTPARTIAL_CONTENTMULTI_STATUSALREADY_REPORTEDIM_USEDMULTIPLE_CHOICESr   r   r   NOT_MODIFIED	USE_PROXYr   r   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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    r   N)	enumr   r   codescodesetattr_name_lowerr	   r   r   r   r   <module>   s     