3
Re\ 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.
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.
)
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 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 ).0nr r /builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el9.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/requests/status_codes.py