aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activeresource/lib')
-rw-r--r--activeresource/lib/active_resource/connection.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activeresource/lib/active_resource/connection.rb b/activeresource/lib/active_resource/connection.rb
index 528a7cc678..8e25ec5eb6 100644
--- a/activeresource/lib/active_resource/connection.rb
+++ b/activeresource/lib/active_resource/connection.rb
@@ -90,10 +90,10 @@ module ActiveResource
response
when 404
raise(ResourceNotFound.new(response))
- when 400
- raise(ResourceInvalid.new(response))
when 409
raise(ResourceConflict.new(response))
+ when 422
+ raise(ResourceInvalid.new(response))
when 401...500
raise(ClientError.new(response))
when 500...600