• File: status_codes.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/requests/__pycache__/status_codes.cpython-37.pyc
  • Date Modified: 06/27/2022 11:19 PM
  • File size: 4.09 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

0_\E@sdaddlmZddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGDZedHdIZdJdKZedLS)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)Zswitching_protocols)Z
processing)Z
checkpoint)Zuri_too_longZrequest_uri_too_long)okZokayZall_okZall_okayZall_goodz\o/u✓)Zcreated)Zaccepted)Znon_authoritative_infoZnon_authoritative_information)Z
no_content)Z
reset_contentreset)Zpartial_contentpartial)Zmulti_statusZmultiple_statusZmulti_statiZmultiple_stati)Zalready_reported)Zim_used)Zmultiple_choices)Zmoved_permanentlyZmovedz\o-)found)Z	see_otherother)Znot_modified)Z	use_proxy)Zswitch_proxy)Ztemporary_redirectZtemporary_movedZ	temporary)Zpermanent_redirectZresume_incompleteZresume)Zbad_requestZbad)Zunauthorized)Zpayment_requiredZpayment)Z	forbidden)Z	not_foundz-o-)Zmethod_not_allowedZnot_allowed)Znot_acceptable)Zproxy_authentication_requiredZ
proxy_authZproxy_authentication)Zrequest_timeoutZtimeout)Zconflict)Zgone)Zlength_required)Zprecondition_failedprecondition)Zrequest_entity_too_large)Zrequest_uri_too_large)Zunsupported_media_typeZunsupported_mediaZ
media_type)Zrequested_range_not_satisfiableZrequested_rangeZrange_not_satisfiable)Zexpectation_failed)Zim_a_teapotZteapotZ
i_am_a_teapot)Zmisdirected_request)Zunprocessable_entityZ
unprocessable)locked)Zfailed_dependencyZ
dependency)Zunordered_collectionZ	unordered)Zupgrade_requiredZupgrade)Zprecondition_requiredr	)Ztoo_many_requestsZtoo_many)Zheader_fields_too_largeZfields_too_large)Zno_responseZnone)Z
retry_withZretry)Z$blocked_by_windows_parental_controlsZparental_controls)Zunavailable_for_legal_reasonsZ
legal_reasons)Zclient_closed_request)Zinternal_server_errorZserver_errorz/o\u✗)Znot_implemented)Zbad_gateway)Zservice_unavailableZunavailable)Zgateway_timeout)Zhttp_version_not_supportedZhttp_version)Zvariant_also_negotiates)Zinsufficient_storage)Zbandwidth_limit_exceededZ	bandwidth)Znot_extended)Znetwork_authentication_requiredZnetwork_authZnetwork_authentication)Ddefgzi,i-i.i/i0i1i2i3i4iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiZstatus_codes)namecsxHtD]<\}}x2|D]*}tt|||dstt||qWq
Wddtdk	r~tddfddttDndadS)N)\/cSs$dddt|D}d||fS)Nz, css|]}d|VqdS)z``%s``N).0nrrF/opt/alt/python37/lib/python3.7/site-packages/requests/status_codes.py	<genexpr>ssz%_init.<locals>.doc.<locals>.<genexpr>z* %d: %s)join_codes)codenamesrrr docrsz_init.<locals>.doc
c3s|]}|VqdS)Nr)rr$)r&rr r!xsz_init.<locals>.<genexpr>)	r#itemssetattrcodes
startswithupper__doc__r"sorted)r$Ztitlestitler)r&r _initks

r0N)r-Z
structuresrr#r*r0rrrr <module>s