diff options
Diffstat (limited to 'venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/requests/status_codes.py')
-rw-r--r-- | venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/requests/status_codes.py | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/requests/status_codes.py b/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/requests/status_codes.py deleted file mode 100644 index 85d9bbc..0000000 --- a/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/requests/status_codes.py +++ /dev/null | |||
@@ -1,91 +0,0 @@ | |||
1 | # -*- coding: utf-8 -*- | ||
2 | |||
3 | from .structures import LookupDict | ||
4 | |||
5 | _codes = { | ||
6 | |||
7 | # Informational. | ||
8 | 100: ('continue',), | ||
9 | 101: ('switching_protocols',), | ||
10 | 102: ('processing',), | ||
11 | 103: ('checkpoint',), | ||
12 | 122: ('uri_too_long', 'request_uri_too_long'), | ||
13 | 200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\\o/', '✓'), | ||
14 | 201: ('created',), | ||
15 | 202: ('accepted',), | ||
16 | 203: ('non_authoritative_info', 'non_authoritative_information'), | ||
17 | 204: ('no_content',), | ||
18 | 205: ('reset_content', 'reset'), | ||
19 | 206: ('partial_content', 'partial'), | ||
20 | 207: ('multi_status', 'multiple_status', 'multi_stati', 'multiple_stati'), | ||
21 | 208: ('already_reported',), | ||
22 | 226: ('im_used',), | ||
23 | |||
24 | # Redirection. | ||
25 | 300: ('multiple_choices',), | ||
26 | 301: ('moved_permanently', 'moved', '\\o-'), | ||
27 | 302: ('found',), | ||
28 | 303: ('see_other', 'other'), | ||
29 | 304: ('not_modified',), | ||
30 | 305: ('use_proxy',), | ||
31 | 306: ('switch_proxy',), | ||
32 | 307: ('temporary_redirect', 'temporary_moved', 'temporary'), | ||
33 | 308: ('permanent_redirect', | ||
34 | 'resume_incomplete', 'resume',), # These 2 to be removed in 3.0 | ||
35 | |||
36 | # Client Error. | ||
37 | 400: ('bad_request', 'bad'), | ||
38 | 401: ('unauthorized',), | ||
39 | 402: ('payment_required', 'payment'), | ||
40 | 403: ('forbidden',), | ||
41 | 404: ('not_found', '-o-'), | ||
42 | 405: ('method_not_allowed', 'not_allowed'), | ||
43 | 406: ('not_acceptable',), | ||
44 | 407: ('proxy_authentication_required', 'proxy_auth', 'proxy_authentication'), | ||
45 | 408: ('request_timeout', 'timeout'), | ||
46 | 409: ('conflict',), | ||
47 | 410: ('gone',), | ||
48 | 411: ('length_required',), | ||
49 | 412: ('precondition_failed', 'precondition'), | ||
50 | 413: ('request_entity_too_large',), | ||
51 | 414: ('request_uri_too_large',), | ||
52 | 415: ('unsupported_media_type', 'unsupported_media', 'media_type'), | ||
53 | 416: ('requested_range_not_satisfiable', 'requested_range', 'range_not_satisfiable'), | ||
54 | 417: ('expectation_failed',), | ||
55 | 418: ('im_a_teapot', 'teapot', 'i_am_a_teapot'), | ||
56 | 421: ('misdirected_request',), | ||
57 | 422: ('unprocessable_entity', 'unprocessable'), | ||
58 | 423: ('locked',), | ||
59 | 424: ('failed_dependency', 'dependency'), | ||
60 | 425: ('unordered_collection', 'unordered'), | ||
61 | 426: ('upgrade_required', 'upgrade'), | ||
62 | 428: ('precondition_required', 'precondition'), | ||
63 | 429: ('too_many_requests', 'too_many'), | ||
64 | 431: ('header_fields_too_large', 'fields_too_large'), | ||
65 | 444: ('no_response', 'none'), | ||
66 | 449: ('retry_with', 'retry'), | ||
67 | 450: ('blocked_by_windows_parental_controls', 'parental_controls'), | ||
68 | 451: ('unavailable_for_legal_reasons', 'legal_reasons'), | ||
69 | 499: ('client_closed_request',), | ||
70 | |||
71 | # Server Error. | ||
72 | 500: ('internal_server_error', 'server_error', '/o\\', '✗'), | ||
73 | 501: ('not_implemented',), | ||
74 | 502: ('bad_gateway',), | ||
75 | 503: ('service_unavailable', 'unavailable'), | ||
76 | 504: ('gateway_timeout',), | ||
77 | 505: ('http_version_not_supported', 'http_version'), | ||
78 | 506: ('variant_also_negotiates',), | ||
79 | 507: ('insufficient_storage',), | ||
80 | 509: ('bandwidth_limit_exceeded', 'bandwidth'), | ||
81 | 510: ('not_extended',), | ||
82 | 511: ('network_authentication_required', 'network_auth', 'network_authentication'), | ||
83 | } | ||
84 | |||
85 | codes = LookupDict(name='status_codes') | ||
86 | |||
87 | for code, titles in _codes.items(): | ||
88 | for title in titles: | ||
89 | setattr(codes, title, code) | ||
90 | if not title.startswith(('\\', '/')): | ||
91 | setattr(codes, title.upper(), code) | ||