diff options
author | Cody Fauser <cody@jadedpixel.com> | 2008-08-19 10:12:04 -0400 |
---|---|---|
committer | Cody Fauser <cody@jadedpixel.com> | 2008-08-19 10:12:04 -0400 |
commit | 03819e0a5a31a55467ddfdfccd75486d7583978e (patch) | |
tree | 414169696e6c0a928e696b26b89184caf095a5af /activeresource/lib/active_resource | |
parent | 2ee60b0f70febc8c28a90e8361d9e9c2b86d4833 (diff) | |
download | rails-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.rb | 8 |
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: |