Module pencil::http_errors [] [src]

This module implements a number of http errors.

Reexports

pub use self::HTTPError::{BadRequest, Unauthorized, Forbidden, NotFound, MethodNotAllowed, NotAcceptable, RequestTimeout, Conflict, Gone, LengthRequired, PreconditionFailed, RequestEntityTooLarge, RequestURITooLarge, UnsupportedMediaType, RequestedRangeNotSatisfiable, ExpectationFailed, ImATeapot, UnprocessableEntity, PreconditionRequired, TooManyRequests, RequestHeaderFieldsTooLarge, InternalServerError, NotImplemented, BadGateway, ServiceUnavailable};

Enums

HTTPError

The HTTP Error type you can return from within your views to trigger a non-200 response. Here is one usage example: