pub trait HttpError:
Error
+ Send
+ Sync
+ 'static {
// Provided methods
fn status(&self) -> StatusCode { ... }
fn reason(&self) -> String { ... }
fn type_name(&self) -> &str { ... }
}Expand description
Trait implemented by errors that can be converted into HttpErrors and used as error responses
Provided Methods§
Sourcefn status(&self) -> StatusCode
fn status(&self) -> StatusCode
Provides the HTTP StatusCode to use when creating this error response