a
    Sic                  E   @   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"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGDZedHdIZdJdK Ze  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)Zswitching_protocols)Z
processing)Z
checkpoint)Zuri_too_longZrequest_uri_too_long)okZokayZall_okZall_okayZall_goodz\o/u   ✓)created)Zaccepted)Znon_authoritative_infoZnon_authoritative_information)Z
no_content)Zreset_contentreset)Zpartial_contentpartial)Zmulti_statusZmultiple_statusZmulti_statiZmultiple_stati)Zalready_reported)Zim_used)Zmultiple_choices)moved_permanentlymovedz\o-)found)	see_otherother)Znot_modified)Z	use_proxy)Zswitch_proxy)temporary_redirectZtemporary_movedZ	temporary)permanent_redirectZresume_incompleteZresume)bad_requestZbad)Zunauthorized)Zpayment_requiredZpayment)Z	forbidden)	not_foundz-o-)method_not_allowedZnot_allowed)not_acceptable)Zproxy_authentication_required
proxy_authZproxy_authentication)Zrequest_timeouttimeout)Zconflict)Zgone)Zlength_required)Zprecondition_failedprecondition)Zrequest_entity_too_large)Zrequest_uri_too_large)unsupported_media_typeZunsupported_media
media_type)Zrequested_range_not_satisfiableZrequested_rangeZrange_not_satisfiable)Zexpectation_failed)Zim_a_teapotZteapotZi_am_a_teapot)Zmisdirected_request)Zunprocessable_entityZunprocessable)locked)Zfailed_dependency
dependency)Zunordered_collectionZ	unordered)Zupgrade_requiredZupgrade)Zprecondition_requiredr   )Ztoo_many_requestsZtoo_many)Zheader_fields_too_largeZfields_too_large)Zno_responsenone)Z
retry_withretry)Z$blocked_by_windows_parental_controlsZparental_controls)Zunavailable_for_legal_reasonsZlegal_reasons)Zclient_closed_request)Zinternal_server_errorserver_errorz/o\u   ✗)Znot_implemented)Zbad_gateway)Zservice_unavailableZunavailable)Zgateway_timeout)Zhttp_version_not_supportedhttp_version)Zvariant_also_negotiates)Zinsufficient_storage)Zbandwidth_limit_exceededZ	bandwidth)Znot_extended)Znetwork_authentication_requiredZnetwork_authZnetwork_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 ]*}tt||  |dstt| |  qqdd  td urvtd d fddtt D  nd ad S )N)\/c                 S   s$   d dd t|  D }d| |f S )Nz, c                 s   s   | ]}d | d V  qdS )z``N ).0nr1   r1   Q/var/www/html/django/DPS/env/lib/python3.9/site-packages/requests/status_codes.py	<genexpr>u       z%_init.<locals>.doc.<locals>.<genexpr>z* %d: %s)join_codes)codenamesr1   r1   r4   doct   s    z_init.<locals>.doc
c                 3   s   | ]} |V  qd S )Nr1   )r2   r9   r;   r1   r4   r5   z   r6   z_init.<locals>.<genexpr>)	r8   itemssetattrcodes
startswithupper__doc__r7   sorted)r9   Ztitlestitler1   r=   r4   _initm   s    
&rF   N)rC   
structuresr   r8   r@   rF   r1   r1   r1   r4   <module>   s   S
