spec/faraday/response_spec.rb in fullcontact-0.8.2 vs spec/faraday/response_spec.rb in fullcontact-0.9.0
- old
+ new
@@ -14,9 +14,10 @@
400 => FullContact::BadRequest,
401 => FullContact::Unauthorized,
403 => FullContact::Forbidden,
404 => FullContact::NotFound,
422 => FullContact::Invalid,
+ 429 => FullContact::RateLimited,
500 => FullContact::InternalServerError,
502 => FullContact::BadGateway,
503 => FullContact::ServiceUnavailable,
}.each do |status, exception|
if (status >= 500)