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