
    r                        d a ddlmZ i 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$i d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFi dGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhi didjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~ddddddddddddZ ed      Zd Z e        y)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_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_usedi,  )multiple_choicesi-  )moved_permanentlymovedz\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_foundz-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_requiredrO   i  )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_errorz/o\u   ✗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status_codes)namec                  J   t         j                         D ]N  \  } }|D ]D  }t        t        ||        |j	                  d      r&t        t        |j                         |        F P d t        2t        dz   dj                  fdt        t               D              z   ay d ay )N)\/c                 N    dj                  d t        |    D              }d| |fz  S )Nz, c              3   &   K   | ]	  }d |z    yw)z``%s``N ).0ns     0platform/bq/third_party/requests/status_codes.py	<genexpr>z%_init.<locals>.doc.<locals>.<genexpr>t   s     =1(Q,s   z* %d: %s)join_codes)codenamess     r   docz_init.<locals>.docs   s)    		=t==T5M))    
c              3   .   K   | ]  } |        y w)Nr   )r   r   r   s     r   r   z_init.<locals>.<genexpr>y   s     >~tT~s   )	r   itemssetattrcodes
startswithupper__doc__r   sorted)r   titlestitler   s      @r   _initr   l   s    fEE5$'##K0u{{}d3  '* % ~yy>vf~>>?G+/ r   N)r   
structuresr   r   r   r   r   r   r   <module>r      s5  ( #N
 N
 	!	N

 N
 N
 	1N
 	HN
 N
 N
 	DN
 N
 	#N
 	'N
 	MN
  	!N
" #N
( 	)N
* 	/+N
, -N
. 	/N
0 	1N
2 3N
4 	5N
6 	?7N
8  
*9N
@ 	AN
B 	CN
D 	(EN
F GN
H 	IN
J 	.KN
L 	MN
N 	PON
P 	'QN
R SN
T UN
V 	WN
X 	0YN
Z 	&[N
\ 	#]N
^ 	F_N
` 	XaN
b 	 cN
d 	3eN
f 	!gN
h 	2iN
j kN
l 	,mN
n 	.oN
p 	(qN
r 	2sN
t 	*uN
v 	8wN
x 	 yN
z 	 {N
| 	F}N
~ 	;N
@ 	#AN
F 	AGN
H 	IN
J 	KN
L 	/MN
N 	ON
P 	7QN
R 	%SN
T 	"UN
V 	2WN
X 	YN
Z 	V[N
` 	'1  r   