o
    9kb                     @   s  d a ddlmZ i ddddddd	d
dddddddddddddddddddddd d!d"d#d$i d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFi dGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhi didjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~ddddddddddddZeddZdd Ze  dS )a  
The ``codes`` object defines a mapping from common names for HTTP statuses
to their numerical codes, accessible either as attributes or as dictionary
items.

Example::

    >>> import requests
    >>> requests.codes['temporary_redirect']
    307
    >>> requests.codes.teapot
    418
    >>> requests.codes['\o/']
    200

Some codes have multiple names, and both upper- and lower-case versions of
the names are allowed. For example, ``codes.ok``, ``codes.OK``, and
``codes.okay`` all correspond to the HTTP status code 200.
   )
LookupDictd   )continuee   )Zswitching_protocolsf   )Z
processingg   )Z
checkpointz   )Zuri_too_longZrequest_uri_too_long   )okZokayZall_okZall_okayZall_goodz\o/u   ✓   )created   )Zaccepted   )Znon_authoritative_infoZnon_authoritative_information   )Z
no_content   )Zreset_contentreset   )Zpartial_contentpartial   )Zmulti_statusZmultiple_statusZmulti_statiZmultiple_stati   )Zalready_reported   )Zim_usedi,  )Zmultiple_choicesi-  )Zmoved_permanentlyZmovedz\o-i.  )foundi/  )Z	see_otherotheri0  )Znot_modifiedi1  )Z	use_proxyi2  )Zswitch_proxyi3  )Ztemporary_redirectZtemporary_movedZ	temporaryi4  )Zpermanent_redirectZresume_incompleteZresumei  )Zbad_requestbadi  )Zunauthorizedi  )Zpayment_requiredZpaymenti  )Z	forbiddeni  )Z	not_foundz-o-i  )Zmethod_not_allowedZnot_allowedi  )Znot_acceptablei  )Zproxy_authentication_requiredZ
proxy_authZproxy_authenticationi  )Zrequest_timeouttimeouti  )Zconflicti  )Zgonei  )Zlength_requiredi  )Zprecondition_failedpreconditioni  )Zrequest_entity_too_largei  )Zrequest_uri_too_largei  )Zunsupported_media_typeZunsupported_mediaZ
media_typei  )Zrequested_range_not_satisfiableZrequested_rangeZrange_not_satisfiablei  )Zexpectation_failedi  )Zim_a_teapotZteapotZi_am_a_teapoti  )Zmisdirected_requesti  )Zunprocessable_entityZunprocessablei  )lockedi  )Zfailed_dependencyZ
dependencyi  )Zunordered_collectionZ	unorderedi  )Zupgrade_requiredupgradei  )Zprecondition_requiredr   i  )Ztoo_many_requestsZtoo_manyi  )Zheader_fields_too_largeZfields_too_largei  )Zno_responsenonei  )Z
retry_withretryi  )Z$blocked_by_windows_parental_controlsZparental_controlsi  )Zunavailable_for_legal_reasonsZlegal_reasonsi  )Zclient_closed_requesti  )Zinternal_server_errorZserver_errorz/o\u   ✗i  )Znot_implementedi  )Zbad_gatewayi  )Zservice_unavailableZunavailablei  )Zgateway_timeouti  )Zhttp_version_not_supportedZhttp_versioni  )Zvariant_also_negotiatesi  )Zinsufficient_storagei  )Zbandwidth_limit_exceededZ	bandwidthi  )Znot_extendedi  )Znetwork_authentication_requiredZnetwork_authZnetwork_authenticationZstatus_codes)namec                     s   t  D ]\} }|D ]}tt||  |dstt| |  q
qdd  td ur=td d fddtt D  ad S d ad S )N)\/c                 S   s$   d dd t|  D }d| |f S )Nz, c                 s   s    | ]	}d | d V  qdS )z``N ).0nr#   r#   9usr/lib/python3.10/site-packages/requests/status_codes.py	<genexpr>u   s    z%_init.<locals>.doc.<locals>.<genexpr>z* %d: %s)join_codes)codenamesr#   r#   r&   doct   s   z_init.<locals>.doc
c                 3   s    | ]} |V  qd S )Nr#   )r$   r*   r,   r#   r&   r'   z   s    z_init.<locals>.<genexpr>)	r)   itemssetattrcodes
startswithupper__doc__r(   sorted)r*   Ztitlestitler#   r.   r&   _initm   s   
"r7   N)r4   Z
structuresr   r)   r1   r7   r#   r#   r#   r&   <module>   s   	
 !"#$%&'()*+,-./056789:;<=>?@ABCDFGHIJKLMNOP
S
