# `Teya.Error`
[🔗](https://github.com/sgerrand/ex_teya/blob/v0.4.0/lib/teya/error.ex#L1)

Represents an error returned by the Teya API.

Pattern-match on `code` for Teya-specific error codes:
`"BAD_REQUEST"`, `"UNAUTHORISED"`, `"FORBIDDEN"`, `"TOO_MANY_REQUESTS"`,
`"INTERNAL_SERVER_ERROR"`.

# `t`

```elixir
@type t() :: %Teya.Error{
  code: String.t() | nil,
  message: String.t() | nil,
  status: integer() | nil
}
```

---

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