lib/api_client/connection/basic.rb in api_client-0.5.2 vs lib/api_client/connection/basic.rb in api_client-0.5.3
- old
+ new
@@ -85,9 +85,11 @@
raise ApiClient::Errors::NotFound
when 400
raise ApiClient::Errors::BadRequest
when 406
raise ApiClient::Errors::Unsupported
+ when 409
+ raise ApiClient::Errors::Conflict
when 422
raise ApiClient::Errors::UnprocessableEntity.new(response.body)
when 300..399
raise ApiClient::Errors::Redirect.new(response['Location'])
when 500..599