pub trait HttpError:
Error
+ Send
+ 'static {
// Provided methods
fn name(&self) -> &'static str { ... }
fn error_type(&self) -> HttpErrorType { ... }
fn http_description(&self) -> String { ... }
fn status_code(&self) -> StatusCode { ... }
}Expand description
Provided Methods§
Sourcefn error_type(&self) -> HttpErrorType
fn error_type(&self) -> HttpErrorType
How should this error be handled, check HttpErrorType for more info (User by default)
Sourcefn http_description(&self) -> String
fn http_description(&self) -> String
Provides HTTP-friendly description of this error (.to_string() by default)
Sourcefn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Which status code should be used for this error