Class: BWAPI::Response::Error
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- BWAPI::Response::Error
- Defined in:
- lib/bwapi/response/error.rb
Overview
Brandwatch response middleware to handle errors
Constant Summary collapse
- ERROR_MAP =
{ 400 => BWAPI::BadRequest, 401 => BWAPI::Unauthorized, 403 => BWAPI::Forbidden, 404 => BWAPI::NotFound, 406 => BWAPI::NotAcceptable, 422 => BWAPI::UnprocessableEntity, 429 => BWAPI::TooManyRequests, 500 => BWAPI::InternalServerError, 501 => BWAPI::NotImplemented, 502 => BWAPI::BadGateway, 503 => BWAPI::ServiceUnavailable }