U
    (qÝ\!  ã                E   @   sº   d a ddlmZ 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$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGœDZedHdI�ZdJdK„ Zeƒ  dLS )MaÓ  
The ``codes`` object defines a mapping from common names for HTTP statuses
to their numerical codes, accessible either as attributes or as dictionary
items.

>>> 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.
é   )Ú
LookupDict)Úcontinue)Zswitching_protocols)Z
processing)Z
checkpoint)Zuri_too_longZrequest_uri_too_long)ÚokZokayZall_okZall_okayZall_goodz\o/u   âœ“)Z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_used)Zmultiple_choices)Zmoved_permanentlyZmovedz\o-)Úfound)Z	see_otherÚother)Znot_modified)Z	use_proxy)Zswitch_proxy)Ztemporary_redirectZtemporary_movedZ	temporary)Zpermanent_redirectZresume_incompleteZresume)Zbad_requestZbad)Zunauthorized)Zpayment_requiredZpayment)Z	forbidden)Z	not_foundz-o-)Zmethod_not_allowedZnot_allowed)Znot_acceptable)Zproxy_authentication_requiredZ
proxy_authZproxy_authentication)Zrequest_timeoutZtimeout)Zconflict)Zgone)Zlength_required)Zprecondition_failedÚprecondition)Zrequest_entity_too_large)Zrequest_uri_too_large)Zunsupported_media_typeZunsupported_mediaZ
media_type)Zrequested_range_not_satisfiableZrequested_rangeZrange_not_satisfiable)Zexpectation_failed)Zim_a_teapotZteapotZi_am_a_teapot)Zmisdirected_request)Zunprocessable_entityZunprocessable)Úlocked)Zfailed_dependencyZ
dependency)Zunordered_collectionZ	unordered)Zupgrade_requiredZupgrade)Zprecondition_requiredr	   )Ztoo_many_requestsZtoo_many)Zheader_fields_too_largeZfields_too_large)Zno_responseZnone)Z
retry_withZretry)Z$blocked_by_windows_parental_controlsZparental_controls)Zunavailable_for_legal_reasonsZlegal_reasons)Zclient_closed_request)Zinternal_server_errorZserver_errorz/o\u   âœ—)Znot_implemented)Zbad_gateway)Zservice_unavailableZunavailable)Zgateway_timeout)Zhttp_version_not_supportedZhttp_version)Zvariant_also_negotiates)Zinsufficient_storage)Zbandwidth_limit_exceededZ	bandwidth)Znot_extended)Znetwork_authentication_requiredZnetwork_authZnetwork_authentication)Déd   ée   éf   ég   éz   éÈ   éÉ   éÊ   éË   éÌ   éÍ   éÎ   éÏ   éÐ   éâ   i,  i-  i.  i/  i0  i1  i2  i3  i4  i�  i‘  i’  i“  i”  i•  i–  i—  i˜  i™  iš  i›  iœ  i�  iž  iŸ  i   i¡  i¢  i¥  i¦  i§  i¨  i©  iª  i¬  i­  i¯  i¼  iÁ  iÂ  iÃ  ió  iô  iõ  iö  i÷  iø  iù  iú  iû  iý  iþ  iÿ  Zstatus_codes)Únamec                     s~   t  ¡ D ]8\} }|D ]*}tt|| ƒ | d¡stt| ¡ | ƒ qqdd„ ‰ td k	rvtd d ‡ fdd„tt ƒD ƒ¡ nd ad S )N)ú\ú/c                 S   s$   d  dd„ t|  D ƒ¡}d| |f S )Nz, c                 s   s   | ]}d | V  qdS )z``%s``N© )Ú.0Únr   r   ú7/usr/lib/python3/dist-packages/requests/status_codes.pyÚ	<genexpr>p   s     z%_init.<locals>.doc.<locals>.<genexpr>z* %d: %s)ÚjoinÚ_codes)ÚcodeÚnamesr   r   r    Údoco   s    z_init.<locals>.docÚ
c                 3   s   | ]}ˆ |ƒV  qd S )Nr   )r   r$   ©r&   r   r    r!   u   s     z_init.<locals>.<genexpr>)	r#   ÚitemsÚsetattrÚcodesÚ
startswithÚupperÚ__doc__r"   Úsorted)r$   ZtitlesÚtitler   r(   r    Ú_inith   s    
þÿþr1   N)r.   Z
structuresr   r#   r+   r1   r   r   r   r    Ú<module>   s’   ³P
