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

The status code of this error.

Provided Methods

Convert this error to a HTTP response.

Implementors