class RestClient::RequestFailed
probably an HTML error page) is e.response.body.
response via e.response. For example, the entire result body (which is
You can get the status code by e.http_code, or see anything about the
format returned by Rails: <errors><error>some message</error></errors>
The exception message attempts to extract the error from the XML, using
than success, unauthorized, or redirect.
The request failed, meaning the remote HTTP server returned a code other
def message
def message "HTTP status code #{http_code}" end
def to_s
def to_s message end