File: //lib/python3.6/site-packages/requests/__pycache__/status_codes.cpython-36.pyc
3
[! F @ s d a ddlmZ ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd{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.
>>> 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.
)
LookupDictcontinueswitching_protocols
processing
checkpointuri_too_longrequest_uri_too_longokokayall_okall_okayall_good\o/ ✓createdacceptednon_authoritative_infonon_authoritative_information
no_content
reset_contentresetpartial_contentpartialmulti_statusmultiple_statusmulti_statimultiple_statialready_reportedim_usedmultiple_choicesmoved_permanentlymoved\o-found see_otherothernot_modified use_proxyswitch_proxytemporary_redirecttemporary_moved temporarypermanent_redirectresume_incompleteresumebad_requestbadunauthorizedpayment_requiredpayment forbidden not_found-o-method_not_allowednot_allowednot_acceptableproxy_authentication_required
proxy_authproxy_authenticationrequest_timeouttimeoutconflictgonelength_requiredprecondition_failedpreconditionrequest_entity_too_largerequest_uri_too_largeunsupported_media_typeunsupported_media
media_typerequested_range_not_satisfiablerequested_rangerange_not_satisfiableexpectation_failedim_a_teapotteapot
i_am_a_teapotmisdirected_requestunprocessable_entity
unprocessablelockedfailed_dependency
dependencyunordered_collection unorderedupgrade_requiredupgradeprecondition_requiredtoo_many_requeststoo_manyheader_fields_too_largefields_too_largeno_responsenone
retry_withretry$blocked_by_windows_parental_controlsparental_controlsunavailable_for_legal_reasons
legal_reasonsclient_closed_requestinternal_server_errorserver_error/o\ ✗not_implementedbad_gatewayservice_unavailableunavailablegateway_timeouthttp_version_not_supportedhttp_versionvariant_also_negotiatesinsufficient_storagebandwidth_limit_exceeded bandwidthnot_extendednetwork_authentication_requirednetwork_authnetwork_authentication)Dd 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 Zstatus_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 ).0nr r "/usr/lib/python3.6/status_codes.py <genexpr>p s z%_init.<locals>.doc.<locals>.<genexpr>z* %d: %s)join_codes)codenamesr r r doco s z_init.<locals>.doc
c 3 s | ]} |V qd S )Nr )r r )r r r r u s z_init.<locals>.<genexpr>)r r ) r itemssetattrcodes
startswithupper__doc__r sorted)r Ztitlestitler )r r _inith s
r N)r )r )r )r )r r )r r
r r r
r r )r )r )r r )r )r r )r r )r r r r )r )r )r )r r! r"