Module: Camper::Error
- Defined in:
- lib/camper/error.rb
Defined Under Namespace
Classes: BadGateway, BadRequest, Conflict, Error, Forbidden, GatewayTimeout, InternalServerError, InvalidConfiguration, InvalidParameter, InvalidURL, MethodNotAllowed, MissingBody, MissingCredentials, NotAcceptable, NotFound, Parsing, RequestIsMissingParameters, ResourceCannotBeCommented, ResponseError, ServiceUnavailable, TooManyRequests, TooManyRetries, Unauthorized, Unprocessable
Constant Summary collapse
- STATUS_MAPPINGS =
HTTP status codes mapped to error classes.
{ 400 => BadRequest, 401 => Unauthorized, 403 => Forbidden, 404 => NotFound, 405 => MethodNotAllowed, 406 => NotAcceptable, 409 => Conflict, 422 => Unprocessable, 429 => TooManyRequests, 500 => InternalServerError, 502 => BadGateway, 503 => ServiceUnavailable, 504 => GatewayTimeout }.freeze