Trait hsr::HasStatusCode
source · pub trait HasStatusCode {
fn status_code(&self) -> StatusCode;
}
Expand description
Associate an http status code with a type. Defaults to 501 Internal Server Error
Required Methods
sourcefn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
The http status code associated with the type