Trait finchers::error::HttpError[][src]

pub trait HttpError: Debug + Display + Send + Sync + 'static {
    fn status_code(&self) -> StatusCode { ... }
fn headers(&self, headers: &mut HeaderMap) { ... }
fn cause(&self) -> Option<&Fail> { ... } }

Trait representing error values from endpoints.

The types which implements this trait will be implicitly converted to an HTTP response by the runtime.

Provided Methods

Return the HTTP status code associated with this error type.

Append a set of header values to the header map.

Trait Implementations

impl AsRef<HttpError> for Error
[src]

Performs the conversion.

Implementations on Foreign Types

impl HttpError for Error
[src]

impl HttpError for Error
[src]

Implementors