gossamer/http_status
Types
An HTTP response status code.
Common codes from RFC 9110
are named explicitly. Uncommon or non-standard codes use Other(Int).
pub type HttpStatus {
Continue
SwitchingProtocols
Ok
Created
Accepted
NoContent
PartialContent
MovedPermanently
Found
SeeOther
NotModified
TemporaryRedirect
PermanentRedirect
BadRequest
Unauthorized
Forbidden
NotFound
MethodNotAllowed
Conflict
Gone
PayloadTooLarge
UnsupportedMediaType
ImATeapot
UnprocessableContent
TooManyRequests
InternalServerError
NotImplemented
BadGateway
ServiceUnavailable
GatewayTimeout
Other(Int)
}
Constructors
-
Continue100 -
SwitchingProtocols101 -
Ok200 -
Created201 -
Accepted202 -
NoContent204 -
PartialContent206 -
MovedPermanently301 -
Found302 -
SeeOther303 -
NotModified304 -
TemporaryRedirect307 -
PermanentRedirect308 -
BadRequest400 -
Unauthorized401 -
Forbidden403 -
NotFound404 -
MethodNotAllowed405 -
Conflict409 -
Gone410 -
PayloadTooLarge413 -
UnsupportedMediaType415 -
ImATeapot418 -
UnprocessableContent422 -
TooManyRequests429 -
InternalServerError500 -
NotImplemented501 -
BadGateway502 -
ServiceUnavailable503 -
GatewayTimeout504 -
Other(Int)