class Crest::RequestFailed

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.

See HTTP Status Code Registry for more Information.

Defined in:

crest/exceptions.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(response) #

[View source]

Class Method Detail

def self.subclass_by_status_code(status_code) #

[View source]

Instance Method Detail

def http_code #

[View source]
def message #

[View source]
def response : Crest::Response #

[View source]