Trait tsukuyomi::error::HttpError[][src]

pub trait HttpError: Fail {
    fn status_code(&self) -> StatusCode;

    fn append_headers(&self, h: &mut HeaderMap) { ... }
}

[unstable] A trait representing HTTP errors.

Required Methods

Returns an HTTP status code associated with the value of this type.

Provided Methods

Appends some entries into the header map of an HTTP response.

Implementors