U
    ڲg                  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)switching_protocols)
processingzearly-hints)
checkpoint)uri_too_longrequest_uri_too_long)okokayall_okall_okayall_goodz\o/u   ✓)created)accepted)non_authoritative_infonon_authoritative_information)
no_content)reset_contentreset)partial_contentpartial)multi_statusmultiple_statusmulti_statimultiple_stati)already_reported)im_used)multiple_choices)moved_permanentlymovedz\o-)found)	see_otherother)not_modified)	use_proxy)switch_proxy)temporary_redirecttemporary_moved	temporary)permanent_redirectresume_incompleteresume)bad_requestbad)unauthorized)payment_requiredpayment)	forbidden)	not_foundz-o-)method_not_allowednot_allowed)not_acceptable)proxy_authentication_required
proxy_authproxy_authentication)request_timeouttimeout)conflict)gone)length_required)precondition_failedprecondition)request_entity_too_largeZcontent_too_large)request_uri_too_larger   )unsupported_media_typeunsupported_media
media_type)requested_range_not_satisfiablerequested_rangerange_not_satisfiable)expectation_failed)im_a_teapotteapoti_am_a_teapot)misdirected_request)unprocessable_entityunprocessableZunprocessable_content)locked)failed_dependency
dependency)unordered_collection	unorderedZ	too_early)upgrade_requiredupgrade)precondition_requiredr?   )too_many_requeststoo_many)header_fields_too_largefields_too_large)no_responsenone)
retry_withretry)$blocked_by_windows_parental_controlsparental_controls)unavailable_for_legal_reasonslegal_reasons)client_closed_request)internal_server_errorserver_errorz/o\u   ✗)not_implemented)bad_gateway)service_unavailableunavailable)gateway_timeout)http_version_not_supportedhttp_version)variant_also_negotiates)insufficient_storage)bandwidth_limit_exceeded	bandwidth)not_extended)network_authentication_requirednetwork_auth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 k	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nr   r   9/tmp/pip-unpacked-wheel-lbhhrn9p/requests/status_codes.py	<genexpr>u   s     z%_init.<locals>.doc.<locals>.<genexpr>z* %d: %s)join_codes)codenamesr   r   r   doct   s    z_init.<locals>.doc
c                 3   s   | ]} |V  qd S )Nr   )r   r   r   r   r   r   z   s     z_init.<locals>.<genexpr>)	r   itemssetattrcodes
startswithupper__doc__r   sorted)r   titlestitler   r   r   _initm   s    
&r   N)r   
structuresr   r   r   r   r   r   r   r   <module>   s   S
