# `HuggingfaceClient.Error.HttpRequestError`
[🔗](https://github.com/huggingface/huggingface_client/blob/v0.1.0/lib/huggingface_client/error.ex#L41)

Base for errors that carry HTTP request/response context.
The `Authorization` header is automatically redacted.

# `http_request`

```elixir
@type http_request() :: %{
  url: String.t(),
  method: String.t(),
  headers: map() | nil,
  body: term()
}
```

# `http_response`

```elixir
@type http_response() :: %{
  request_id: String.t(),
  status: non_neg_integer(),
  body: term()
}
```

# `t`

```elixir
@type t() :: %HuggingfaceClient.Error.HttpRequestError{
  __exception__: true,
  http_request: http_request(),
  http_response: http_response(),
  message: String.t()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
