# Class LittleGhost::Providers::HTTPError

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Providers/HTTPError.html

Reports a bounded HTTP or network failure from a provider connection.

## Inheritance

`LittleGhost::Providers::HTTPError < LittleGhost::ProviderError`

## Attributes

<a id="attribute-i-body"></a>
### `body` (R)

HTTP status, when a response was received, and the bounded response body.

<a id="attribute-i-status"></a>
### `status` (R)

HTTP status, when a response was received, and the bounded response body.

## Class methods

<a id="method-c-new"></a>
### `.new`

```ruby
.new(message, status: nil, body: nil)
```

Captures a provider failure without retaining an unbounded response.

## Instance methods

<a id="method-i-retryable-3F"></a>
### `#retryable?`

```ruby
#retryable?()
```

Whether retrying the same provider request may succeed.
