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