pub enum StatusCode {
Show 46 variants
Continue,
SwitchingProtocols,
Ok,
Created,
Accepted,
NonAuthoritativeInformation,
NoContent,
ResetContent,
PartialContent,
MultipleChoices,
MovedPermanently,
Found,
SeeOther,
NotModified,
TemporaryRedirect,
PermanentRedirect,
BadRequest,
Unauthorized,
PaymentRequired,
Forbidden,
NotFound,
MethodNotAllowed,
NotAcceptable,
ProxyAuthenticationRequired,
RequestTimeout,
Conflict,
Gone,
LengthRequired,
PreconditionFailed,
PayloadTooLarge,
UriTooLong,
UnsupportedMediaType,
RangeNotSatisfiable,
ExpectationFailed,
ImATeapot,
UnprocessableEntity,
Locked,
FailedDependency,
TooManyRequests,
InternalServerError,
NotImplemented,
BadGateway,
ServiceUnavailable,
GatewayTimeout,
HttpVersionNotSupported,
Unknown,
}
Expand description
HTTP status code
Variants§
Continue
Continue status code
SwitchingProtocols
SwitchingProtocols status code
Ok
HTTP OK status code
Created
Created status code
Accepted
Accepted status code
NonAuthoritativeInformation
NonAuthoritativeInformation status code
NoContent
NoContent status code
ResetContent
ResetContent status code
PartialContent
PartialContent status code
MultipleChoices
MultipleChoices status code
MovedPermanently
MovedPermanently status code
Found
Found status code
SeeOther
SeeOther status code
NotModified
NotModified status code
TemporaryRedirect
TemporaryRedirect status code
PermanentRedirect
PermanentRedirect status code
BadRequest
BadRequest status code
Unauthorized status code
PaymentRequired
PaymentRequired status code
Forbidden
Forbidden status code
NotFound
NotFound status code
MethodNotAllowed
MethodNotAllowed status code
NotAcceptable
NotAcceptable status code
ProxyAuthenticationRequired
ProxyAuthenticationRequired status code
RequestTimeout
RequestTimeout status code
Conflict
Conflict status code
Gone
Gone status code
LengthRequired
LengthRequired status code
PreconditionFailed
PreconditionFailed status code
PayloadTooLarge
PayloadTooLarge status code
UriTooLong
URITooLong status code
UnsupportedMediaType
UnsupportedMediaType status code
RangeNotSatisfiable
RangeNotSatisfiable status code
ExpectationFailed
ExpectationFailed status code
ImATeapot
ImATeapot status code
UnprocessableEntity
UnprocessableEntity status code
Locked
Locked status code
FailedDependency
FailedDependency status code
TooManyRequests
TooManyRequests status code
InternalServerError
InternalServerError status code
NotImplemented
NotImplemented status code
BadGateway
BadGateway status code
ServiceUnavailable status code
GatewayTimeout
GatewayTimeout status code
HttpVersionNotSupported
HTTPVersionNotSupported status code
Unknown
Indicates an unknown status code
Implementations§
Trait Implementations§
Source§impl Clone for StatusCode
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more