Re\ @ 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 d0 d d4 d d6 d d9 d d; d d= d d? d dC d dG d dJ d dL d dO d dQ d dT d dW d dY d d] d d` d db d dd d df d di d dk d dm d dq d du d dw 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 dd dd dd dd dd dd diD Z e d d Z d d Z e d S( 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.
)
LookupDictd continuee switching_protocolsf
processingg
checkpointz uri_too_longrequest_uri_too_long okokayall_okall_okayall_good\o/ ✓ created accepted non_authoritative_infonon_authoritative_information
no_content
reset_contentreset partial_contentpartial multi_statusmultiple_statusmulti_statimultiple_stati already_reported im_usedi, multiple_choicesi- moved_permanentlymoved\o-i. foundi/ see_otherotheri0 not_modifiedi1 use_proxyi2 switch_proxyi3 temporary_redirecttemporary_moved temporaryi4 permanent_redirectresume_incompleteresumei bad_requestbadi unauthorizedi payment_requiredpaymenti forbiddeni not_found-o-i method_not_allowednot_allowedi not_acceptablei proxy_authentication_required
proxy_authproxy_authenticationi request_timeouttimeouti conflicti gonei length_requiredi precondition_failedpreconditioni request_entity_too_largei request_uri_too_largei unsupported_media_typeunsupported_media
media_typei requested_range_not_satisfiablerequested_rangerange_not_satisfiablei expectation_failedi im_a_teapotteapot
i_am_a_teapoti misdirected_requesti unprocessable_entity
unprocessablei lockedi failed_dependency
dependencyi unordered_collection unorderedi upgrade_requiredupgradei precondition_requiredi too_many_requeststoo_manyi header_fields_too_largefields_too_largei no_responsenonei
retry_withretryi $blocked_by_windows_parental_controlsparental_controlsi unavailable_for_legal_reasons
legal_reasonsi client_closed_requesti internal_server_errorserver_error/o\ ✗i not_implementedi bad_gatewayi service_unavailableunavailablei gateway_timeouti http_version_not_supportedhttp_versioni variant_also_negotiatesi insufficient_storagei bandwidth_limit_exceeded bandwidthi not_extendedi network_authentication_requirednetwork_authnetwork_authenticationnamestatus_codesc s x` t j D]R \ } } xC | D]; } t t | | | j d s t t | j | q Wq
Wd d t d k r t d d j f d d t t D n d a d S) N\/c S s. d j d d t | D } d | | f S)Nz, c s s | ] } d | Vq d S)z``%s``N ).0nr r /builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/status_codes.py