Trait poem::error::ResponseError
source · pub trait ResponseError {
// Required method
fn status(&self) -> StatusCode;
// Provided method
fn as_response(&self) -> Response
where Self: StdError + Send + Sync + 'static { ... }
}
Expand description
Represents a type that can be converted to Error
.
Required Methods§
sourcefn status(&self) -> StatusCode
fn status(&self) -> StatusCode
The status code of this error.