3
V'íc\ ã F @ sº d a ddlmZ ddddd
ddddddddddddddddddddddddddd d¡d¢d£d¤d¥d¦d§d¨d©dªd«d¬dd®d¯d°d±d²d³d´dµd¶d·d¸d¹dºd»d¼d½d¾d¿dÀdÁdÂdÃdÄd{DZed|d}Zd~d Ze 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.
é )Ú
LookupDictÚcontinueÚswitching_protocolsÚ
processingÚ
checkpointÚuri_too_longÚrequest_uri_too_longÚokÚokayÚall_okÚall_okayÚall_goodú\o/õ âÚ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Úmovedú\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_foundú-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_requiredÚ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_errorú/o\õ âÚ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 xHt j D ]<\} }x2|D ]*}tt|| |jdstt|j | qW q
W dd td k r~td dj fddtt D nd ad S ) Nú\ú/c S s$ dj dd t| D }d| |f S )Nz, c s s | ]}d | V qdS )z``%s``N© )Ú.0Únr r ú9/tmp/pip-build-gk9425m9/requests/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 qd S )Nr )r r )r r r r x s z_init.<locals>.<genexpr>)r r ) r ÚitemsÚsetattrÚcodesÚ
startswithÚupperÚ__doc__r Úsorted)r ÚtitlesÚtitler )r r Ú_initk s
r¢ N)r )r )r )r )r r )r r