pub enum Status {
Show 25 variants
Ok = 200,
Created = 201,
Accepted = 202,
NoContent = 204,
PartialContent = 206,
MovedPermanently = 301,
Found = 302,
SeeOther = 303,
NotModified = 304,
TemporaryRedirect = 307,
PermanentRedirect = 308,
BadRequest = 400,
Unauthorized = 401,
Forbidden = 403,
NotFound = 404,
MethodNotAllowed = 405,
Conflict = 409,
UnsupportedMediaType = 415,
RangeNotSatisfiable = 416,
TooManyRequests = 429,
InternalServerError = 500,
BadGateway = 502,
ServiceUnavailable = 503,
GatewayTimeout = 504,
Unknown = 0,
}Expand description
HTTP status types
Variants§
Ok = 200
Created = 201
Accepted = 202
NoContent = 204
PartialContent = 206
MovedPermanently = 301
Found = 302
SeeOther = 303
NotModified = 304
TemporaryRedirect = 307
PermanentRedirect = 308
BadRequest = 400
Forbidden = 403
NotFound = 404
MethodNotAllowed = 405
Conflict = 409
UnsupportedMediaType = 415
RangeNotSatisfiable = 416
TooManyRequests = 429
InternalServerError = 500
BadGateway = 502
GatewayTimeout = 504
Unknown = 0
Implementations§
source§impl Status
impl Status
pub fn is_informational(&self) -> bool
pub fn is_successful(&self) -> bool
pub fn is_redirection(&self) -> bool
pub fn is_client_error(&self) -> bool
pub fn is_server_error(&self) -> bool
Trait Implementations§
source§impl PartialEq for Status
impl PartialEq for Status
source§impl PartialOrd for Status
impl PartialOrd for Status
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more