Module chilli::http_errors
[−]
[src]
This module implements a number of http errors.
Re-exports
pub use self::HTTPError::BadRequest; |
pub use self::HTTPError::Unauthorized; |
pub use self::HTTPError::Forbidden; |
pub use self::HTTPError::NotFound; |
pub use self::HTTPError::MethodNotAllowed; |
pub use self::HTTPError::NotAcceptable; |
pub use self::HTTPError::RequestTimeout; |
pub use self::HTTPError::Conflict; |
pub use self::HTTPError::Gone; |
pub use self::HTTPError::LengthRequired; |
pub use self::HTTPError::PreconditionFailed; |
pub use self::HTTPError::RequestEntityTooLarge; |
pub use self::HTTPError::RequestURITooLarge; |
pub use self::HTTPError::UnsupportedMediaType; |
pub use self::HTTPError::RequestedRangeNotSatisfiable; |
pub use self::HTTPError::ExpectationFailed; |
pub use self::HTTPError::ImATeapot; |
pub use self::HTTPError::UnprocessableEntity; |
pub use self::HTTPError::PreconditionRequired; |
pub use self::HTTPError::TooManyRequests; |
pub use self::HTTPError::RequestHeaderFieldsTooLarge; |
pub use self::HTTPError::InternalServerError; |
pub use self::HTTPError::NotImplemented; |
pub use self::HTTPError::BadGateway; |
pub use self::HTTPError::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: |