lib/api_client/connection/basic.rb in api_client-0.5.20 vs lib/api_client/connection/basic.rb in api_client-0.5.21
- old
+ new
@@ -105,9 +105,11 @@
raise ApiClient::Errors::BadRequest.new(nil, request, response)
when 406
raise ApiClient::Errors::Unsupported.new(nil, request, response)
when 409
raise ApiClient::Errors::Conflict.new(nil, request, response)
+ when 410
+ raise ApiClient::Errors::Gone.new(nil, request, response)
when 422
raise ApiClient::Errors::UnprocessableEntity.new(response.body, request, response)
when 429
raise ApiClient::Errors::TooManyRequests.new(response.body, request, response)
when 300..399