Class: AirbnbApi::Util::ErrorHandling
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- AirbnbApi::Util::ErrorHandling
- Defined in:
- lib/airbnb_api/util/error_handling.rb
Constant Summary collapse
- ERROR_MAP =
{ 400 => AirbnbApi::Errors::BadRequest, 401 => true, 402 => true, 403 => true, 404 => true, 405 => AirbnbApi::Errors::RateLimit, 406 => true, 422 => true, 429 => AirbnbApi::Errors::RateLimit, 503 => AirbnbApi::Errors::RateLimit }.freeze