Skip to content
Myr

status blocks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 23ff27e · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:requests/status_codes.py+8 added
1 unmodified line
23from .structures import LookupDict45_codes = {67 # Informational.8 100: ('continue',),9 101: ('switching_protocols',),10 102: ('processing',),11 103: ('checkpoint',),
6 unmodified lines
18 205: ('reset_content', 'reset'),19 206: ('partial_content', 'partial'),20 207: ('multi_status', 'multiple_status', 'multi_stati', 'multiple_stati'),21 208: ('im_used',),2223 # Redirection.24 300: ('multiple_choices',),25 301: ('moved_pemanently', 'moved'),26 302: ('found',),27 302: ('see_other', 'other'),
1 unmodified line
29 305: ('use_proxy',),30 306: ('switch_proxy',),31 307: ('temporary_redirect', 'temporary_moved', 'temporary'),32 308: ('resume_incomplete', 'resume'),3334 # Client Error.35 400: ('bad_request', 'bad'),36 401: ('unauthorized',),37 402: ('payment_required', 'payment'),38 403: ('forbidden',),
20 unmodified lines
59 444: ('no_response', 'none'),60 449: ('retry_with', 'retry'),61 450: ('blocked_by_windows_parental_controls', 'parental_controls'),62 499: ('client_closed_request',),6364 # Server Error.65 500: ('iternal_server_error', 'server_error'),66 501: ('not_implemented',),67 502: ('bad_gateway',),68 503: ('service_unavailable', 'unavailable'),
15 unmodified lines