#[non_exhaustive]pub enum ServerErrorResponse {
InternalServerError = 500,
NotImplemented = 501,
BadGateway = 502,
ServiceUnavailable = 503,
GatewayTimeout = 504,
HTTPVersionNotSupported = 505,
VariantAlsoNegotiates = 506,
InsufficientStorage = 507,
LoopDetected = 508,
NotExtended = 510,
NetworkAuthenticationRequired = 511,
}Expand description
§Wikipedia:
A ServerErrorResponse (5xx) status indicates that the server is aware that it has encountered an error or is otherwise incapable of performing the request. Except when responding to a HEAD request, the server should include an entity containing an explanation of the error situation, and indicate whether it is a temporary or permanent condition. Likewise, user agents should display any included entity to the user. These response codes are applicable to any request method.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InternalServerError = 500
NotImplemented = 501
BadGateway = 502
GatewayTimeout = 504
HTTPVersionNotSupported = 505
VariantAlsoNegotiates = 506
InsufficientStorage = 507
LoopDetected = 508
NotExtended = 510
NetworkAuthenticationRequired = 511
Trait Implementations§
Source§impl Clone for ServerErrorResponse
impl Clone for ServerErrorResponse
Source§fn clone(&self) -> ServerErrorResponse
fn clone(&self) -> ServerErrorResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerErrorResponse
impl Debug for ServerErrorResponse
Source§impl Display for ServerErrorResponse
impl Display for ServerErrorResponse
Source§impl From<ServerErrorResponse> for HttpStatus
impl From<ServerErrorResponse> for HttpStatus
Source§fn from(val: ServerErrorResponse) -> Self
fn from(val: ServerErrorResponse) -> Self
Converts to this type from the input type.
Source§impl Hash for ServerErrorResponse
impl Hash for ServerErrorResponse
Source§impl Ord for ServerErrorResponse
impl Ord for ServerErrorResponse
Source§fn cmp(&self, other: &ServerErrorResponse) -> Ordering
fn cmp(&self, other: &ServerErrorResponse) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServerErrorResponse
impl PartialEq for ServerErrorResponse
Source§impl PartialOrd for ServerErrorResponse
impl PartialOrd for ServerErrorResponse
impl Eq for ServerErrorResponse
impl StructuralPartialEq for ServerErrorResponse
Auto Trait Implementations§
impl Freeze for ServerErrorResponse
impl RefUnwindSafe for ServerErrorResponse
impl Send for ServerErrorResponse
impl Sync for ServerErrorResponse
impl Unpin for ServerErrorResponse
impl UnwindSafe for ServerErrorResponse
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