September 28, 2009

ActiveResource Error response

* 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