# `TwitterViewer.ErrorCode`
[🔗](https://github.com/TwitterViewer/twitterviewer-elixir/blob/v0.1.0/lib/twitterviewer/error.ex#L1)

Every error code the service defines. Compare against `TwitterViewer.APIError.code`.

    {:error, %TwitterViewer.APIError{code: code}} = TwitterViewer.credits(client)
    code == TwitterViewer.ErrorCode.limit_reached()

# `all`

```elixir
@spec all() :: [String.t()]
```

All codes, as strings.

# `conflict`

```elixir
@spec conflict() :: String.t()
```

The code `CONFLICT`.

# `email_blocked`

```elixir
@spec email_blocked() :: String.t()
```

The code `EMAIL_BLOCKED`.

# `email_not_configured`

```elixir
@spec email_not_configured() :: String.t()
```

The code `EMAIL_NOT_CONFIGURED`.

# `email_send_failed`

```elixir
@spec email_send_failed() :: String.t()
```

The code `EMAIL_SEND_FAILED`.

# `forbidden`

```elixir
@spec forbidden() :: String.t()
```

The code `FORBIDDEN`.

# `human_check_required`

```elixir
@spec human_check_required() :: String.t()
```

The code `HUMAN_CHECK_REQUIRED`.

# `internal`

```elixir
@spec internal() :: String.t()
```

The code `INTERNAL`.

# `invalid_input`

```elixir
@spec invalid_input() :: String.t()
```

The code `INVALID_INPUT`.

# `invalid_or_expired_token`

```elixir
@spec invalid_or_expired_token() :: String.t()
```

The code `INVALID_OR_EXPIRED_TOKEN`.

# `limit_reached`

```elixir
@spec limit_reached() :: String.t()
```

The code `LIMIT_REACHED`.

# `not_found`

```elixir
@spec not_found() :: String.t()
```

The code `NOT_FOUND`.

# `protected`

```elixir
@spec protected() :: String.t()
```

The code `PROTECTED`.

# `rate_limited`

```elixir
@spec rate_limited() :: String.t()
```

The code `RATE_LIMITED`.

# `service_unavailable`

```elixir
@spec service_unavailable() :: String.t()
```

The code `SERVICE_UNAVAILABLE`.

# `suspended`

```elixir
@spec suspended() :: String.t()
```

The code `SUSPENDED`.

# `turnstile_failed`

```elixir
@spec turnstile_failed() :: String.t()
```

The code `TURNSTILE_FAILED`.

# `unauthorized`

```elixir
@spec unauthorized() :: String.t()
```

The code `UNAUTHORIZED`.

# `unsupported`

```elixir
@spec unsupported() :: String.t()
```

The code `UNSUPPORTED`.

# `upstream`

```elixir
@spec upstream() :: String.t()
```

The code `UPSTREAM`.

---

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