Class: RestClient::RequestFailed

Class | RestClient::RequestFailed
In: | lib/restclient/exceptions.rb
Parent: | ExceptionWithResponse

The request failed, meaning the remote HTTP server returned a code other than success, unauthorized, or redirect.

The exception message attempts to extract the error from the XML, using format returned by Rails: <errors><error>some message</error></errors>

You can get the status code by e.http_code, or see anything about the response via e.response. For example, the entire result body (which is probably an HTML error page) is e.response.body.

### Methods

message to_s

### Public Instance methods

message()
to_s()

[Validate]