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