http_type/http_status/enum.rs
1use crate::*;
2
3/// Standard HTTP status codes.
4///
5/// Includes informational, success, redirection, client and server error codes.
6#[derive(Debug, Clone, Copy, PartialEq, Eq, Default, Serialize, Deserialize)]
7pub enum HttpStatus {
8 /// HTTP 100 Continue
9 Continue,
10 /// HTTP 101 Switching Protocols
11 SwitchingProtocols,
12 /// HTTP 102 Processing (WebDAV)
13 Processing,
14 /// HTTP 103 Early Hints
15 EarlyHints,
16 /// HTTP 200 OK
17 #[default]
18 Ok,
19 /// HTTP 201 Created
20 Created,
21 /// HTTP 202 Accepted
22 Accepted,
23 /// HTTP 203 Non-Authoritative Information
24 NonAuthoritativeInformation,
25 /// HTTP 204 No Content
26 NoContent,
27 /// HTTP 205 Reset Content
28 ResetContent,
29 /// HTTP 206 Partial Content
30 PartialContent,
31 /// HTTP 207 Multi-Status (WebDAV)
32 MultiStatus,
33 /// HTTP 208 Already Reported (WebDAV)
34 AlreadyReported,
35 /// HTTP 226 IM Used
36 IMUsed,
37 /// HTTP 300 Multiple Choices
38 MultipleChoices,
39 /// HTTP 301 Moved Permanently
40 MovedPermanently,
41 /// HTTP 302 Found
42 Found,
43 /// HTTP 303 See Other
44 SeeOther,
45 /// HTTP 304 Not Modified
46 NotModified,
47 /// HTTP 305 Use Proxy
48 UseProxy,
49 /// HTTP 307 Temporary Redirect
50 TemporaryRedirect,
51 /// HTTP 308 Permanent Redirect
52 PermanentRedirect,
53 /// HTTP 400 Bad Request
54 BadRequest,
55 /// HTTP 401 Unauthorized
56 Unauthorized,
57 /// HTTP 402 Payment Required
58 PaymentRequired,
59 /// HTTP 403 Forbidden
60 Forbidden,
61 /// HTTP 404 Not Found
62 NotFound,
63 /// HTTP 405 Method Not Allowed
64 MethodNotAllowed,
65 /// HTTP 406 Not Acceptable
66 NotAcceptable,
67 /// HTTP 407 Proxy Authentication Required
68 ProxyAuthenticationRequired,
69 /// HTTP 408 Request Timeout
70 RequestTimeout,
71 /// HTTP 409 Conflict
72 Conflict,
73 /// HTTP 410 Gone
74 Gone,
75 /// HTTP 411 Length Required
76 LengthRequired,
77 /// HTTP 412 Precondition Failed
78 PreconditionFailed,
79 /// HTTP 413 Payload Too Large
80 PayloadTooLarge,
81 /// HTTP 414 URI Too Long
82 URITooLong,
83 /// HTTP 415 Unsupported Media Type
84 UnsupportedMediaType,
85 /// HTTP 416 Range Not Satisfiable
86 RangeNotSatisfiable,
87 /// HTTP 417 Expectation Failed
88 ExpectationFailed,
89 /// HTTP 418 I'm a teapot
90 ImATeapot,
91 /// HTTP 421 Misdirected Request
92 MisdirectedRequest,
93 /// HTTP 422 Unprocessable Entity (WebDAV)
94 UnprocessableEntity,
95 /// HTTP 423 Locked (WebDAV)
96 Locked,
97 /// HTTP 424 Failed Dependency (WebDAV)
98 FailedDependency,
99 /// HTTP 425 Too Early
100 TooEarly,
101 /// HTTP 426 Upgrade Required
102 UpgradeRequired,
103 /// HTTP 428 Precondition Required
104 PreconditionRequired,
105 /// HTTP 429 Too Many Requests
106 TooManyRequests,
107 /// HTTP 431 Request Header Fields Too Large
108 RequestHeaderFieldsTooLarge,
109 /// HTTP 451 Unavailable For Legal Reasons
110 UnavailableForLegalReasons,
111 /// HTTP 500 Internal Server Error
112 InternalServerError,
113 /// HTTP 501 Not Implemented
114 NotImplemented,
115 /// HTTP 502 Bad Gateway
116 BadGateway,
117 /// HTTP 503 Service Unavailable
118 ServiceUnavailable,
119 /// HTTP 504 Gateway Timeout
120 GatewayTimeout,
121 /// HTTP 505 HTTP Version Not Supported
122 HTTPVersionNotSupported,
123 /// HTTP 506 Variant Also Negotiates
124 VariantAlsoNegotiates,
125 /// HTTP 507 Insufficient Storage (WebDAV)
126 InsufficientStorage,
127 /// HTTP 508 Loop Detected (WebDAV)
128 LoopDetected,
129 /// HTTP 510 Not Extended
130 NotExtended,
131 /// HTTP 511 Network Authentication Required
132 NetworkAuthenticationRequired,
133 /// HTTP Unknown status code
134 Unknown,
135}