lib/faraday/response/raise_http_4xx.rb in desk-1.0.4 vs lib/faraday/response/raise_http_4xx.rb in desk-1.0.5
- old
+ new
@@ -14,9 +14,13 @@
raise Desk::Forbidden.new(error_message(env), env[:response_headers])
when 404
raise Desk::NotFound.new(error_message(env), env[:response_headers])
when 406
raise Desk::NotAcceptable.new(error_message(env), env[:response_headers])
+ when 409
+ raise Desk::Conflict.new(error_message(env), env[:response_headers])
+ when 422
+ raise Desk::Unprocessable.new(error_message(env), env[:response_headers])
when 429
raise Desk::EnhanceYourCalm.new(error_message(env), env[:response_headers])
end
end