# `LLMProxy.HTTP.Routes.Passthrough.ErrorHandler`
[🔗](https://github.com/elixir-vibe/llm_proxy/blob/v0.3.1/lib/llm_proxy/http/routes/passthrough.ex#L39)

Route callbacks used to render and classify passthrough-route errors.

# `on_provider_error`

```elixir
@type on_provider_error() :: (LLMProxy.Providers.Result.t() -&gt; :ok)
```

# `provider_error_type`

```elixir
@type provider_error_type() :: (pos_integer() -&gt; String.t())
```

# `send_error`

```elixir
@type send_error() :: (Plug.Conn.t(), pos_integer(), String.t(), term() -&gt;
                   Plug.Conn.t())
```

# `t`

```elixir
@type t() :: %LLMProxy.HTTP.Routes.Passthrough.ErrorHandler{
  on_provider_error: on_provider_error(),
  provider_error_type: provider_error_type(),
  send_error: send_error()
}
```

---

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