# `Latch.Error.InvalidResponse`

A server response was structurally invalid, including bad JSON or a
missing or malformed required field.

## `reason` values
  * `:invalid_json`
  * `:unexpected_response`
  * `{:http_status, status}`
  * `{:missing, field}`
  * `{:invalid, field}`

# `reason`

```elixir
@type reason() ::
  :invalid_json
  | :unexpected_response
  | {:http_status, pos_integer()}
  | {:missing, String.t()}
  | {:invalid, String.t()}
```

# `t`

```elixir
@type t() :: %Latch.Error.InvalidResponse{__exception__: term(), reason: reason()}
```

---

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