-
Notifications
You must be signed in to change notification settings - Fork 0
/
http-codes.ts
72 lines (68 loc) · 3.51 KB
/
http-codes.ts
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
// 1×× Informational
export const HTTP_CODE_CONTINUE: number = 100;
export const HTTP_CODE_SWITCHING_PROTOCOLS: number = 101;
export const HTTP_CODE_PROCESSING: number = 102;
// 2×× Success
export const HTTP_CODE_OK: number = 200;
export const HTTP_CODE_CREATED: number = 201;
export const HTTP_CODE_ACCEPTED: number = 202;
export const HTTP_CODE_NON_AUTHORITATIVE_INFORMATION: number = 203;
export const HTTP_CODE_NO_CONTENT: number = 204;
export const HTTP_CODE_RESET_CONTENT: number = 205;
export const HTTP_CODE_PARTIAL_CONTENT: number = 206;
export const HTTP_CODE_MULTI_STATUS: number = 207;
export const HTTP_CODE_ALREADY_REPORTED: number = 208;
export const HTTP_CODE_IM_USED: number = 226;
// 3×× Redirection
export const HTTP_CODE_MULTIPLE_CHOICES: number = 300;
export const HTTP_CODE_MOVED_PERMANENTLY: number = 301;
export const HTTP_CODE_FOUND: number = 302;
export const HTTP_CODE_SEE_OTHER: number = 303;
export const HTTP_CODE_NOT_MODIFIED: number = 304;
export const HTTP_CODE_USE_PROXY: number = 305;
export const HTTP_CODE_TEMPORARY_REDIRECT: number = 307;
export const HTTP_CODE_PERMANENT_REDIRECT: number = 308;
// 4×× Client Error
export const HTTP_CODE_BAD_REQUEST: number = 400;
export const HTTP_CODE_UNAUTHORIZED: number = 401;
export const HTTP_CODE_PAYMENT_REQUIRED: number = 402;
export const HTTP_CODE_FORBIDDEN: number = 403;
export const HTTP_CODE_NOT_FOUND: number = 404;
export const HTTP_CODE_METHOD_NOT_ALLOWED: number = 405;
export const HTTP_CODE_NOT_ACCEPTABLE: number = 406;
export const HTTP_CODE_PROXY_AUTHENTICATION_REQUIRED: number = 407;
export const HTTP_CODE_REQUEST_TIMEOUT: number = 408;
export const HTTP_CODE_CONFLICT: number = 409;
export const HTTP_CODE_GONE: number = 410;
export const HTTP_CODE_LENGTH_REQUIRED: number = 411;
export const HTTP_CODE_PRECONDITION_FAILED: number = 412;
export const HTTP_CODE_PAYLOAD_TOO_LARGE: number = 413;
export const HTTP_CODE_REQUEST_URI_TOO_LONG: number = 414;
export const HTTP_CODE_UNSUPPORTED_MEDIA_TYPE: number = 415;
export const HTTP_CODE_REQUESTED_RANGE_NOT_SATISFIABLE: number = 416;
export const HTTP_CODE_EXPECTATION_FAILED: number = 417;
export const HTTP_CODE_I_M_A_TEAPOT: number = 418;
export const HTTP_CODE_MISDIRECTED_REQUEST: number = 421;
export const HTTP_CODE_UNPROCESSABLE_ENTITY: number = 422;
export const HTTP_CODE_LOCKED: number = 423;
export const HTTP_CODE_FAILED_DEPENDENCY: number = 424;
export const HTTP_CODE_UPGRADE_REQUIRED: number = 426;
export const HTTP_CODE_PRECONDITION_REQUIRED: number = 428;
export const HTTP_CODE_TOO_MANY_REQUESTS: number = 429;
export const HTTP_CODE_REQUEST_HEADER_FIELDS_TOO_LARGE: number = 431;
export const HTTP_CODE_CONNECTION_CLOSED_WITHOUT_RESPONSE: number = 444;
export const HTTP_CODE_UNAVAILABLE_FOR_LEGAL_REASONS: number = 451;
export const HTTP_CODE_CLIENT_CLOSED_REQUEST: number = 499;
// 5×× Server Error
export const HTTP_CODE_INTERNAL_SERVER_ERROR: number = 500;
export const HTTP_CODE_NOT_IMPLEMENTED: number = 501;
export const HTTP_CODE_BAD_GATEWAY: number = 502;
export const HTTP_CODE_SERVICE_UNAVAILABLE: number = 503;
export const HTTP_CODE_GATEWAY_TIMEOUT: number = 504;
export const HTTP_CODE_HTTP_VERSION_NOT_SUPPORTED: number = 505;
export const HTTP_CODE_VARIANT_ALSO_NEGOTIATES: number = 506;
export const HTTP_CODE_INSUFFICIENT_STORAGE: number = 507;
export const HTTP_CODE_LOOP_DETECTED: number = 508;
export const HTTP_CODE_NOT_EXTENDED: number = 510;
export const HTTP_CODE_NETWORK_AUTHENTICATION_REQUIRED: number = 511;
export const HTTP_CODE_NETWORK_CONNECT_TIMEOUT_ERROR: number = 599;