U
    žV_\  ã                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.

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.
é   )Ú
LookupDict)Úcontinue)Úswitching_protocols)Ú
processing)Ú
checkpoint)Úuri_too_longÚrequest_uri_too_long)ÚokÚokayÚall_okÚall_okayÚall_goodz\o/u   âœ“)Úcreated)Úaccepted)Únon_authoritative_infoÚnon_authoritative_information)Ú
no_content)Úreset_contentÚreset)Úpartial_contentÚpartial)Úmulti_statusÚmultiple_statusÚmulti_statiÚmultiple_stati)Úalready_reported)Úim_used)Úmultiple_choices)Úmoved_permanentlyÚmovedz\o-)Úfound)Ú	see_otherÚother)Únot_modified)Ú	use_proxy)Úswitch_proxy)Útemporary_redirectÚtemporary_movedÚ	temporary)Úpermanent_redirectÚresume_incompleteÚresume)Úbad_requestÚbad)Úunauthorized)Úpayment_requiredÚpayment)Ú	forbidden)Ú	not_foundz-o-)Úmethod_not_allowedÚnot_allowed)Únot_acceptable)Úproxy_authentication_requiredÚ
proxy_authÚproxy_authentication)Úrequest_timeoutÚtimeout)Úconflict)Úgone)Úlength_required)Úprecondition_failedÚprecondition)Úrequest_entity_too_large)Úrequest_uri_too_large)Úunsupported_media_typeÚunsupported_mediaÚ
media_type)Úrequested_range_not_satisfiableÚrequested_rangeÚrange_not_satisfiable)Úexpectation_failed)Úim_a_teapotÚteapotÚi_am_a_teapot)Úmisdirected_request)Úunprocessable_entityÚunprocessable)Úlocked)Úfailed_dependencyÚ
dependency)Úunordered_collectionÚ	unordered)Úupgrade_requiredÚupgrade)Úprecondition_requiredr?   )Útoo_many_requestsÚtoo_many)Úheader_fields_too_largeÚfields_too_large)Úno_responseÚnone)Ú
retry_withÚretry)Ú$blocked_by_windows_parental_controlsÚparental_controls)Úunavailable_for_legal_reasonsÚlegal_reasons)Úclient_closed_request)Úinternal_server_errorÚserver_errorz/o\u   âœ—)Únot_implemented)Úbad_gateway)Úservice_unavailableÚunavailable)Úgateway_timeout)Úhttp_version_not_supportedÚhttp_version)Úvariant_also_negotiates)Úinsufficient_storage)Úbandwidth_limit_exceededÚ	bandwidth)Únot_extended)Únetwork_authentication_requiredÚnetwork_authÚ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ÿ  Ú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ˆ   ú9/tmp/pip-unpacked-wheel-18xsftou/requests/status_codes.pyÚ	<genexpr>s   s     z%_init.<locals>.doc.<locals>.<genexpr>z* %d: %s)ÚjoinÚ_codes)ÚcodeÚnamesrˆ   rˆ   r‹   Údocr   s    z_init.<locals>.docÚ
c                 3   s   | ]}ˆ |ƒV  qd S )Nrˆ   )r‰   r�   ©r‘   rˆ   r‹   rŒ   x   s     z_init.<locals>.<genexpr>)	rŽ   ÚitemsÚsetattrÚcodesÚ
startswithÚupperÚ__doc__r�   Úsorted)r�   ÚtitlesÚtitlerˆ   r“   r‹   Ú_initk   s    
þÿþr�   N)r™   Ú
structuresr   rŽ   r–   r�   rˆ   rˆ   rˆ   r‹   Ú<module>   s’   ³P
