-
-
Notifications
You must be signed in to change notification settings - Fork 171
/
statuses.js
81 lines (79 loc) · 3.89 KB
/
statuses.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// This file is not on TypeScript so that it's reused in the Node scripts
const statuses = {
100: { code: 100, message: 'Continue' },
101: { code: 101, message: 'Switching Protocols' },
102: { code: 102, message: 'Processing' },
103: { code: 103, message: 'Early Hints'},
200: { code: 200, message: 'OK' },
201: { code: 201, message: 'Created' },
202: { code: 202, message: 'Accepted' },
203: { code: 203, message: 'Non-Authoritative Information' },
204: { code: 204, message: 'No Content' },
206: { code: 206, message: 'Partial Content' },
205: { code: 205, message: 'Reset Content' },
207: { code: 207, message: 'Multi-Status' },
208: { code: 208, message: 'Already Reported' },
214: { code: 214, message: 'Transformation Applied' },
226: { code: 226, message: 'IM Used' },
300: { code: 300, message: 'Multiple Choices' },
301: { code: 301, message: 'Moved Permanently' },
302: { code: 302, message: 'Found' },
303: { code: 303, message: 'See Other' },
304: { code: 304, message: 'Not Modified' },
305: { code: 305, message: 'Use Proxy' },
307: { code: 307, message: 'Temporary Redirect' },
308: { code: 308, message: 'Permanent Redirect' },
400: { code: 400, message: 'Bad Request' },
401: { code: 401, message: 'Unauthorized' },
402: { code: 402, message: 'Payment Required' },
403: { code: 403, message: 'Forbidden' },
404: { code: 404, message: 'Not Found' },
405: { code: 405, message: 'Method Not Allowed' },
406: { code: 406, message: 'Not Acceptable' },
407: { code: 407, message: 'Proxy Authentication Required' },
408: { code: 408, message: 'Request Timeout' },
409: { code: 409, message: 'Conflict' },
410: { code: 410, message: 'Gone' },
411: { code: 411, message: 'Length Required' },
412: { code: 412, message: 'Precondition Failed' },
413: { code: 413, message: 'Payload Too Large' },
414: { code: 414, message: 'Request-URI Too Long' },
415: { code: 415, message: 'Unsupported Media Type' },
416: { code: 416, message: 'Request Range Not Satisfiable' },
417: { code: 417, message: 'Expectation Failed' },
418: { code: 418, message: 'I’m a teapot' },
420: { code: 420, message: 'Enhance Your Calm' },
421: { code: 421, message: 'Misdirected Request' },
422: { code: 422, message: 'Unprocessable Entity' },
423: { code: 423, message: 'Locked' },
424: { code: 424, message: 'Failed Dependency' },
425: { code: 425, message: 'Too Early' },
426: { code: 426, message: 'Upgrade Required' },
428: { code: 428, message: 'Precondition Required' },
429: { code: 429, message: 'Too Many Requests' },
431: { code: 431, message: 'Request Header Fields Too Large' },
444: { code: 444, message: 'No Response' },
450: { code: 450, message: 'Blocked by Windows Parental Controls' },
451: { code: 451, message: 'Unavailable For Legal Reasons' },
497: { code: 497, message: 'HTTP Request Sent to HTTPS Port' },
498: { code: 498, message: 'Token expired/invalid' },
499: { code: 499, message: 'Client Closed Request' },
500: { code: 500, message: 'Internal Server Error' },
501: { code: 501, message: 'Not Implemented' },
502: { code: 502, message: 'Bad Gateway' },
503: { code: 503, message: 'Service Unavailable' },
504: { code: 504, message: 'Gateway Timeout' },
506: { code: 506, message: 'Variant Also Negotiates' },
507: { code: 507, message: 'Insufficient Storage' },
508: { code: 508, message: 'Loop Detected' },
509: { code: 509, message: 'Bandwidth Limit Exceeded' },
510: { code: 510, message: 'Not Extended' },
511: { code: 511, message: 'Network Authentication Required' },
521: { code: 521, message: 'Web Server Is Down' },
522: { code: 522, message: 'Connection Timed Out' },
523: { code: 523, message: 'Origin Is Unreachable' },
525: { code: 525, message: 'SSL Handshake Failed' },
530: { code: 530, message: 'Site Frozen' },
599: { code: 599, message: 'Network Connect Timeout Error' },
}
module.exports = statuses;