main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | const HttpStatusCode = {
|
---|
2 | Continue: 100,
|
---|
3 | SwitchingProtocols: 101,
|
---|
4 | Processing: 102,
|
---|
5 | EarlyHints: 103,
|
---|
6 | Ok: 200,
|
---|
7 | Created: 201,
|
---|
8 | Accepted: 202,
|
---|
9 | NonAuthoritativeInformation: 203,
|
---|
10 | NoContent: 204,
|
---|
11 | ResetContent: 205,
|
---|
12 | PartialContent: 206,
|
---|
13 | MultiStatus: 207,
|
---|
14 | AlreadyReported: 208,
|
---|
15 | ImUsed: 226,
|
---|
16 | MultipleChoices: 300,
|
---|
17 | MovedPermanently: 301,
|
---|
18 | Found: 302,
|
---|
19 | SeeOther: 303,
|
---|
20 | NotModified: 304,
|
---|
21 | UseProxy: 305,
|
---|
22 | Unused: 306,
|
---|
23 | TemporaryRedirect: 307,
|
---|
24 | PermanentRedirect: 308,
|
---|
25 | BadRequest: 400,
|
---|
26 | Unauthorized: 401,
|
---|
27 | PaymentRequired: 402,
|
---|
28 | Forbidden: 403,
|
---|
29 | NotFound: 404,
|
---|
30 | MethodNotAllowed: 405,
|
---|
31 | NotAcceptable: 406,
|
---|
32 | ProxyAuthenticationRequired: 407,
|
---|
33 | RequestTimeout: 408,
|
---|
34 | Conflict: 409,
|
---|
35 | Gone: 410,
|
---|
36 | LengthRequired: 411,
|
---|
37 | PreconditionFailed: 412,
|
---|
38 | PayloadTooLarge: 413,
|
---|
39 | UriTooLong: 414,
|
---|
40 | UnsupportedMediaType: 415,
|
---|
41 | RangeNotSatisfiable: 416,
|
---|
42 | ExpectationFailed: 417,
|
---|
43 | ImATeapot: 418,
|
---|
44 | MisdirectedRequest: 421,
|
---|
45 | UnprocessableEntity: 422,
|
---|
46 | Locked: 423,
|
---|
47 | FailedDependency: 424,
|
---|
48 | TooEarly: 425,
|
---|
49 | UpgradeRequired: 426,
|
---|
50 | PreconditionRequired: 428,
|
---|
51 | TooManyRequests: 429,
|
---|
52 | RequestHeaderFieldsTooLarge: 431,
|
---|
53 | UnavailableForLegalReasons: 451,
|
---|
54 | InternalServerError: 500,
|
---|
55 | NotImplemented: 501,
|
---|
56 | BadGateway: 502,
|
---|
57 | ServiceUnavailable: 503,
|
---|
58 | GatewayTimeout: 504,
|
---|
59 | HttpVersionNotSupported: 505,
|
---|
60 | VariantAlsoNegotiates: 506,
|
---|
61 | InsufficientStorage: 507,
|
---|
62 | LoopDetected: 508,
|
---|
63 | NotExtended: 510,
|
---|
64 | NetworkAuthenticationRequired: 511,
|
---|
65 | };
|
---|
66 |
|
---|
67 | Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
---|
68 | HttpStatusCode[value] = key;
|
---|
69 | });
|
---|
70 |
|
---|
71 | export default HttpStatusCode;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.