http_type/http_status/
type.rs

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