aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource
diff options
context:
space:
mode:
authorCody Fauser <cody@jadedpixel.com>2008-08-19 10:12:04 -0400
committerCody Fauser <cody@jadedpixel.com>2008-08-19 10:12:04 -0400
commit03819e0a5a31a55467ddfdfccd75486d7583978e (patch)
tree414169696e6c0a928e696b26b89184caf095a5af /activeresource/lib/active_resource
parent2ee60b0f70febc8c28a90e8361d9e9c2b86d4833 (diff)
downloadrails-03819e0a5a31a55467ddfdfccd75486d7583978e.tar.gz
rails-03819e0a5a31a55467ddfdfccd75486d7583978e.tar.bz2
rails-03819e0a5a31a55467ddfdfccd75486d7583978e.zip
Update listing of ActiveResource errors
Diffstat (limited to 'activeresource/lib/active_resource')
-rw-r--r--activeresource/lib/active_resource/base.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb
index 7739f627c1..b723c2e7c8 100644
--- a/activeresource/lib/active_resource/base.rb
+++ b/activeresource/lib/active_resource/base.rb
@@ -116,12 +116,18 @@ module ActiveResource
# <tt>404</tt> is just one of the HTTP error response codes that Active Resource will handle with its own exception. The
# following HTTP response codes will also result in these exceptions:
#
- # * 200..399 - Valid response, no exception
+ # * 200..399 - Valid response, no exception (other than 301, 302)
+ # * 301, 302 - ActiveResource::Redirection
+ # * 400 - ActiveResource::BadRequest
+ # * 401 - ActiveResource::UnauthorizedAccess
+ # * 403 - ActiveResource::ForbiddenAccess
# * 404 - ActiveResource::ResourceNotFound
+ # * 405 - ActiveResource::MethodNotAllowed
# * 409 - ActiveResource::ResourceConflict
# * 422 - ActiveResource::ResourceInvalid (rescued by save as validation errors)
# * 401..499 - ActiveResource::ClientError
# * 500..599 - ActiveResource::ServerError
+ # * Other - ActiveResource::ConnectionError
#
# These custom exceptions allow you to deal with resource errors more naturally and with more precision
# rather than returning a general HTTP error. For example: