pub enum HttpStatus {
Show 63 variants
Continue,
SwitchingProtocols,
Processing,
EarlyHints,
Ok,
Created,
Accepted,
NonAuthoritativeInformation,
NoContent,
ResetContent,
PartialContent,
MultiStatus,
AlreadyReported,
IMUsed,
MultipleChoices,
MovedPermanently,
Found,
SeeOther,
NotModified,
UseProxy,
TemporaryRedirect,
PermanentRedirect,
BadRequest,
Unauthorized,
PaymentRequired,
Forbidden,
NotFound,
MethodNotAllowed,
NotAcceptable,
ProxyAuthenticationRequired,
RequestTimeout,
Conflict,
Gone,
LengthRequired,
PreconditionFailed,
PayloadTooLarge,
URITooLong,
UnsupportedMediaType,
RangeNotSatisfiable,
ExpectationFailed,
ImATeapot,
MisdirectedRequest,
UnprocessableEntity,
Locked,
FailedDependency,
TooEarly,
UpgradeRequired,
PreconditionRequired,
TooManyRequests,
RequestHeaderFieldsTooLarge,
UnavailableForLegalReasons,
InternalServerError,
NotImplemented,
BadGateway,
ServiceUnavailable,
GatewayTimeout,
HTTPVersionNotSupported,
VariantAlsoNegotiates,
InsufficientStorage,
LoopDetected,
NotExtended,
NetworkAuthenticationRequired,
Unknown,
}
Expand description
Standard HTTP status codes.
Includes informational, success, redirection, client and server error codes.
Variants§
Continue
HTTP 100 Continue
SwitchingProtocols
HTTP 101 Switching Protocols
Processing
HTTP 102 Processing (WebDAV)
EarlyHints
HTTP 103 Early Hints
Ok
HTTP 200 OK
Created
HTTP 201 Created
Accepted
HTTP 202 Accepted
NonAuthoritativeInformation
HTTP 203 Non-Authoritative Information
NoContent
HTTP 204 No Content
ResetContent
HTTP 205 Reset Content
PartialContent
HTTP 206 Partial Content
MultiStatus
HTTP 207 Multi-Status (WebDAV)
AlreadyReported
HTTP 208 Already Reported (WebDAV)
IMUsed
HTTP 226 IM Used
MultipleChoices
HTTP 300 Multiple Choices
MovedPermanently
HTTP 301 Moved Permanently
Found
HTTP 302 Found
SeeOther
HTTP 303 See Other
NotModified
HTTP 304 Not Modified
UseProxy
HTTP 305 Use Proxy
TemporaryRedirect
HTTP 307 Temporary Redirect
PermanentRedirect
HTTP 308 Permanent Redirect
BadRequest
HTTP 400 Bad Request
HTTP 401 Unauthorized
PaymentRequired
HTTP 402 Payment Required
Forbidden
HTTP 403 Forbidden
NotFound
HTTP 404 Not Found
MethodNotAllowed
HTTP 405 Method Not Allowed
NotAcceptable
HTTP 406 Not Acceptable
ProxyAuthenticationRequired
HTTP 407 Proxy Authentication Required
RequestTimeout
HTTP 408 Request Timeout
Conflict
HTTP 409 Conflict
Gone
HTTP 410 Gone
LengthRequired
HTTP 411 Length Required
PreconditionFailed
HTTP 412 Precondition Failed
PayloadTooLarge
HTTP 413 Payload Too Large
URITooLong
HTTP 414 URI Too Long
UnsupportedMediaType
HTTP 415 Unsupported Media Type
RangeNotSatisfiable
HTTP 416 Range Not Satisfiable
ExpectationFailed
HTTP 417 Expectation Failed
ImATeapot
HTTP 418 I’m a teapot
MisdirectedRequest
HTTP 421 Misdirected Request
UnprocessableEntity
HTTP 422 Unprocessable Entity (WebDAV)
Locked
HTTP 423 Locked (WebDAV)
FailedDependency
HTTP 424 Failed Dependency (WebDAV)
TooEarly
HTTP 425 Too Early
UpgradeRequired
HTTP 426 Upgrade Required
PreconditionRequired
HTTP 428 Precondition Required
TooManyRequests
HTTP 429 Too Many Requests
RequestHeaderFieldsTooLarge
HTTP 431 Request Header Fields Too Large
HTTP 451 Unavailable For Legal Reasons
InternalServerError
HTTP 500 Internal Server Error
NotImplemented
HTTP 501 Not Implemented
BadGateway
HTTP 502 Bad Gateway
HTTP 503 Service Unavailable
GatewayTimeout
HTTP 504 Gateway Timeout
HTTPVersionNotSupported
HTTP 505 HTTP Version Not Supported
VariantAlsoNegotiates
HTTP 506 Variant Also Negotiates
InsufficientStorage
HTTP 507 Insufficient Storage (WebDAV)
LoopDetected
HTTP 508 Loop Detected (WebDAV)
NotExtended
HTTP 510 Not Extended
NetworkAuthenticationRequired
HTTP 511 Network Authentication Required
Unknown
HTTP Unknown status code
Implementations§
Source§impl HttpStatus
The HttpStatus
enum represents the HTTP status codes.
impl HttpStatus
The HttpStatus
enum represents the HTTP status codes.
It maps common HTTP status codes to their respective meanings. It provides methods to retrieve the corresponding numeric code as well as the associated status text. Additionally, it implements conversion from a string representation of the status code.
Trait Implementations§
Source§impl Clone for HttpStatus
impl Clone for HttpStatus
Source§fn clone(&self) -> HttpStatus
fn clone(&self) -> HttpStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HttpStatus
impl Debug for HttpStatus
Source§impl Default for HttpStatus
impl Default for HttpStatus
Source§fn default() -> HttpStatus
fn default() -> HttpStatus
Source§impl Display for HttpStatus
Implements the Display
trait for HttpStatus
, allowing it to be formatted as a string.
impl Display for HttpStatus
Implements the Display
trait for HttpStatus
, allowing it to be formatted as a string.
Source§impl FromStr for HttpStatus
Implements the FromStr
trait for HttpStatus
, allowing conversion from a string slice.
impl FromStr for HttpStatus
Implements the FromStr
trait for HttpStatus
, allowing conversion from a string slice.