a
Re\ E @ s d a ddlmZ ddddddd d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;dd?d@dAdBdCdDdEdFdGDZedHdIZdJdK Ze 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_longrequest_uri_too_long)okokayall_okall_okayall_goodz\o/u ✓)created)accepted)non_authoritative_infonon_authoritative_information)
no_content)
reset_contentreset)partial_contentpartial)multi_statusmultiple_statusmulti_statimultiple_stati)already_reported)im_used)multiple_choices)moved_permanentlymovedz\o-)found) see_otherother)not_modified) use_proxy)switch_proxy)temporary_redirecttemporary_moved temporary)permanent_redirectresume_incompleteresume)bad_requestbad)unauthorized)payment_requiredpayment) forbidden) not_foundz-o-)method_not_allowednot_allowed)not_acceptable)proxy_authentication_required
proxy_authproxy_authentication)request_timeouttimeout)conflict)gone)length_required)precondition_failedprecondition)request_entity_too_large)request_uri_too_large)unsupported_media_typeunsupported_media
media_type)requested_range_not_satisfiablerequested_rangerange_not_satisfiable)expectation_failed)im_a_teapotteapot
i_am_a_teapot)misdirected_request)unprocessable_entity
unprocessable)locked)failed_dependency
dependency)unordered_collection unordered)upgrade_requiredupgrade)precondition_requiredr? )too_many_requeststoo_many)header_fields_too_largefields_too_large)no_responsenone)
retry_withretry)$blocked_by_windows_parental_controlsparental_controls)unavailable_for_legal_reasons
legal_reasons)client_closed_request)internal_server_errorserver_errorz/o\u ✗)not_implemented)bad_gateway)service_unavailableunavailable)gateway_timeout)http_version_not_supportedhttp_version)variant_also_negotiates)insufficient_storage)bandwidth_limit_exceeded bandwidth)not_extended)network_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~ t D ]8\} }|D ]*}tt|| |dstt| | qqdd td urvtd d fddtt D nd ad S )N)\/c S s$ d dd t| D }d| |f S )Nz, c s s | ]}d | V qdS )z``%s``N ).0nr r /builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_vendor/requests/status_codes.py s z%_init..doc..z* %d: %s)join_codes)codenamesr r r docr s z_init..doc
c 3 s | ]} |V qd S )Nr )r r r r r r x r z_init..) r itemssetattrcodes
startswithupper__doc__r sorted)r titlestitler r r _initk s
r N)r
structuresr r r r r r r r s P