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
fn status_code(&self) -> StatusCode
Returns an HTTP status code associated with the value of this type.
Provided Methods
fn append_headers(&self, h: &mut HeaderMap)
Appends some entries into the header map of an HTTP response.