blob: 665e7f70d95bd0ab8ac8551d5c3f86806e6cdda4 [file] [log] [blame]
Misha Krieger-Raynauld2f5d1ce2022-10-23 21:13:33 -04001/*
2 * Copyright (C) 2022 Savoir-faire Linux Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation; either version 3 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
13 *
14 * You should have received a copy of the GNU Affero General Public
15 * License along with this program. If not, see
16 * <https://www.gnu.org/licenses/>.
17 */
18export enum HttpStatusCode {
19 Continue = 100,
20 SwitchingProtocols = 101,
21 Processing = 102,
22 Ok = 200,
23 Created = 201,
24 Accepted = 202,
25 NonAuthoritativeInformation = 203,
26 NoContent = 204,
27 ResetContent = 205,
28 PartialContent = 206,
29 MultiStatus = 207,
30 AlreadyReported = 208,
31 ImUsed = 226,
32 MultipleChoices = 300,
33 MovedPermanently = 301,
34 Found = 302,
35 SeeOther = 303,
36 NotModified = 304,
37 UseProxy = 305,
38 SwitchProxy = 306,
39 TemporaryRedirect = 307,
40 PermanentRedirect = 308,
41 BadRequest = 400,
42 Unauthorized = 401,
43 PaymentRequired = 402,
44 Forbidden = 403,
45 NotFound = 404,
46 MethodNotAllowed = 405,
47 NotAcceptable = 406,
48 ProxyAuthenticationRequired = 407,
49 RequestTimeout = 408,
50 Conflict = 409,
51 Gone = 410,
52 LengthRequired = 411,
53 PreconditionFailed = 412,
54 PayloadTooLarge = 413,
55 UriTooLong = 414,
56 UnsupportedMediaType = 415,
57 RangeNotSatisfiable = 416,
58 ExpectationFailed = 417,
59 ImATeapot = 418,
60 MisdirectedRequest = 421,
61 UnprocessableEntity = 422,
62 Locked = 423,
63 FailedDependency = 424,
64 UpgradeRequired = 426,
65 PreconditionRequired = 428,
66 TooManyRequests = 429,
67 RequestHeaderFieldsTooLarge = 431,
68 UnavailableForLegalReasons = 451,
69 InternalServerError = 500,
70 NotImplemented = 501,
71 BadGateway = 502,
72 ServiceUnavailable = 503,
73 GatewayTimeout = 504,
74 HttpVersionNotSupported = 505,
75 VariantAlsoNegotiates = 506,
76 InsufficientStorage = 507,
77 LoopDetected = 508,
78 NotExtended = 510,
79 NetworkAuthenticationRequired = 511,
80}