Class: Footrest::RaiseFootrestErrors
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- Footrest::RaiseFootrestErrors
- Defined in:
- lib/footrest/http_error.rb
Constant Summary collapse
- ERROR_MAP =
{ 400 => Footrest::HttpError::BadRequest, 401 => Footrest::HttpError::Unauthorized, 403 => Footrest::HttpError::Forbidden, 404 => Footrest::HttpError::NotFound, 405 => Footrest::HttpError::MethodNotAllowed, 500 => Footrest::HttpError::InternalServerError, 501 => Footrest::HttpError::NotImplemented, 502 => Footrest::HttpError::BadGateway, 503 => Footrest::HttpError::ServiceUnavailable }