# `PostHog.UnexpectedResponseError`
[🔗](https://github.com/posthog/posthog-elixir/blob/v2.23.4/lib/posthog/error.ex#L16)

PostHog error that includes a response from the API, either full or partial.

## Fields

- `:message` - human-readable error message.
- `:response` - API response data that caused the error.

# `t`

```elixir
@type t() :: %PostHog.UnexpectedResponseError{
  __exception__: true,
  message: String.t(),
  response: any()
}
```

Exception raised when PostHog returns a response the SDK cannot handle.

---

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