1pub enum HttpResponseStatusCode {
2 Informational(Informational),
3 Successful(Successful),
4 Redirection(Redirection),
5 ClientError(ClientError),
6 ServerError(ServerError),
7}
8
9pub enum Informational {
10 Continue = 100,
11 SwitchingProtocols = 101,
12 WebDavProcessing = 102,
13 EarlyHints = 103,
14}
15
16pub enum Successful {
17 Ok = 200,
18 Created = 201,
19 Accepted = 202,
20 NonAuthorativeInformation = 203,
21 NoContent = 204,
22 ResetContent = 205,
23 PartialContent = 206,
24 WebDavMultiStatus = 207,
25 WebDavAlreadyReported = 208,
26 DeltaImUsed = 226,
27}
28
29pub enum Redirection {
30 MultipleChoices = 300,
31 MovedPermanently = 301,
32 Found = 302,
33 SeeOther = 303,
34 NotModified = 304,
35 DeprecatedUseProxy = 305,
36 ReservedUnused306 = 306,
37 TemporaryRedirect = 307,
38 PermanentRedirect = 308,
39}
40
41pub enum ClientError {
42 BadRequest = 400,
43 Unauthorized = 401,
44 PaymentRequired = 402,
45 Forbidden = 403,
46 NotFound = 404,
47 MethodNotAllowed = 405,
48 NotAcceptable = 406,
49 ProxyAuthenticationRequired = 407,
50 RequestTimeout = 408,
51 Conflict = 409,
52 Gone = 410,
53 LengthRequired = 411,
54 PreconditionFailed = 412,
55 PayloadTooLarge = 413,
56 UriTooLong = 414,
57 UnsupportedMediaType = 415,
58 RangeNotSatisfiable = 416,
59 ExpectationFailed = 417,
60 ImATeapot = 418,
61 MisdirectedRequest = 421,
62 WebDavUnprocessableContent = 422,
63 WebDavLocked = 423,
64 WebDavFailedDependency = 424,
65 TooEarly = 425,
66 UpgradeRequired = 426,
67 PreconditionRequired = 428,
68 TooManyRequests = 429,
69 RequestHeaderFieldsTooLarge = 431,
70 UnavailableForLegalReasons = 451,
71}
72
73pub enum ServerError {
74 InternalServerError = 500,
75 NotImplemented = 501,
76 BadGateway = 502,
77 ServiceUnavailable = 503,
78 GatewayTimeout = 504,
79 HttpVersionNotSupported = 505,
80 VariantAlsoNegotiates = 506,
81 WebDavInsufficientStorage = 507,
82 WebDavLoopDetected = 508,
83 NotExtended = 510,
84 NetworkAuthenticationRequired = 511,
85}