
Kh\                 @   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 dd dd dd dd dd dd diD 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_longrequest_uri_too_long   okokayall_okall_okayall_good\o/   ✓   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_usedi,  multiple_choicesi-  moved_permanentlymoved\o-i.  foundi/  	see_otherotheri0  not_modifiedi1  	use_proxyi2  switch_proxyi3  temporary_redirecttemporary_moved	temporaryi4  permanent_redirectresume_incompleteresumei  bad_requestbadi  unauthorizedi  payment_requiredpaymenti  	forbiddeni  	not_found-o-i  method_not_allowednot_allowedi  not_acceptablei  proxy_authentication_required
proxy_authproxy_authenticationi  request_timeouttimeouti  conflicti  gonei  length_requiredi  precondition_failedpreconditioni  request_entity_too_largei  request_uri_too_largei  unsupported_media_typeunsupported_media
media_typei  requested_range_not_satisfiablerequested_rangerange_not_satisfiablei  expectation_failedi  im_a_teapotteapoti_am_a_teapoti  misdirected_requesti  unprocessable_entityunprocessablei  lockedi  failed_dependency
dependencyi  unordered_collection	unorderedi  upgrade_requiredupgradei  precondition_requiredi  too_many_requeststoo_manyi  header_fields_too_largefields_too_largei  no_responsenonei  
retry_withretryi  $blocked_by_windows_parental_controlsparental_controlsi  unavailable_for_legal_reasonslegal_reasonsi  client_closed_requesti  internal_server_errorserver_error/o\   ✗i  not_implementedi  bad_gatewayi  service_unavailableunavailablei  gateway_timeouti  http_version_not_supportedhttp_versioni  variant_also_negotiatesi  insufficient_storagei  bandwidth_limit_exceeded	bandwidthi  not_extendedi  network_authentication_requirednetwork_authnetwork_authenticationnamestatus_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  | Vq d S)z``%s``N ).0nr   r   Q/mod/web/acousticsspace/venv/lib/python3.5/site-packages/requests/status_codes.py	<genexpr>s   s    z%_init.<locals>.doc.<locals>.<genexpr>z* %d: %s)join_codes)codenamesr   r   r   docr   s     z_init.<locals>.doc
c             3   s   |  ] }   |  Vq d  S)Nr   )r   r   )r   r   r   r   x   s    z_init.<locals>.<genexpr>)r   r   )	r   itemssetattrcodes
startswithupper__doc__r   sorted)r   titlestitler   )r   r   _initk   s    r   N)zcontinue)zswitching_protocols)z
processing)z
checkpoint)zuri_too_longzrequest_uri_too_long)zokzokayzall_okzall_okayzall_goodr   r   )zcreated)zaccepted)znon_authoritative_infoznon_authoritative_information)z
no_content)zreset_contentzreset)zpartial_contentzpartial)zmulti_statuszmultiple_statuszmulti_statizmultiple_stati)zalready_reported)zim_used)zmultiple_choices)zmoved_permanentlyzmovedr1   )zfound)z	see_otherzother)znot_modified)z	use_proxy)zswitch_proxy)ztemporary_redirectztemporary_movedz	temporary)zpermanent_redirectzresume_incompletezresume)zbad_requestzbad)zunauthorized)zpayment_requiredzpayment)z	forbidden)z	not_foundrE   )zmethod_not_allowedznot_allowed)znot_acceptable)zproxy_authentication_requiredz
proxy_authzproxy_authentication)zrequest_timeoutztimeout)zconflict)zgone)zlength_required)zprecondition_failedprecondition)zrequest_entity_too_large)zrequest_uri_too_large)zunsupported_media_typezunsupported_mediaz
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)zlocked)zfailed_dependencyz
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_responseznone)z
retry_withzretry)z$blocked_by_windows_parental_controlszparental_controls)zunavailable_for_legal_reasonszlegal_reasons)zclient_closed_request)zinternal_server_errorzserver_errorry   rz   )znot_implemented)zbad_gateway)zservice_unavailablezunavailable)zgateway_timeout)zhttp_version_not_supportedz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)r   
structuresr   r   r   r   r   r   r   r   <module>   s   