Methods

RestClient::RequestFailed

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: some message

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.

Public Instance Methods

message() click to toggle source
    # File lib/restclient/exceptions.rb, line 69
69:                 def message
70:                         "HTTP status code #{http_code}"
71:                 end
to_s() click to toggle source
    # File lib/restclient/exceptions.rb, line 73
73:                 def to_s
74:                         message
75:                 end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.