pub trait ToHttpStatus {
// Required method
fn to_http_status(&self) -> StatusCode;
}Expand description
A trait to get the HTTP status code for a given Error.
pub trait ToHttpStatus {
// Required method
fn to_http_status(&self) -> StatusCode;
}A trait to get the HTTP status code for a given Error.