class Crest::RequestFailed
- Crest::RequestFailed
- Exception
- Reference
- Object
Overview
This is the base Crest
exception class. Rescue it if you want to
catch any exception that your request might raise
You can 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
.
Hash of HTTP status code => message
.
1xx
: Informational - Request received, continuing process2xx
: Success - The action was successfully received, understood, and accepted3xx
: Redirection - Further action must be taken in order to complete the request4xx
: Client Error - The request contains bad syntax or cannot be fulfilled5xx
: Server Error - The server failed to fulfill an apparently valid request
See HTTP Status Code Registry for more Information.