# `Ankusa.SDK.RoutesRejectedError`
[🔗](https://github.com/jamescarr/ankusa/blob/sdk-elixir-v0.6.0/packages/sdk-elixir/lib/ankusa/sdk/errors.ex#L118)

The listener rejected the request (`400` or any other non-404 `4xx`).

`:code` is the body's `error` field (`invalid_route`, `duplicate_route`,
`too_many_routes`, ...); `:field`, `:message`, `:conflicting_id`,
`:max_routes` and `:scope` are carried through when the body supplies them.
`:scope` is the scope a `403 forbidden` says the credential lacks (control
planes require a credential since Ankusa 0.6).

# `t`

```elixir
@type t() :: %Ankusa.SDK.RoutesRejectedError{
  __exception__: term(),
  code: String.t() | nil,
  conflicting_id: String.t() | nil,
  field: String.t() | nil,
  max_routes: non_neg_integer() | nil,
  message: String.t() | nil,
  retryable: term(),
  scope: String.t() | nil,
  status: non_neg_integer()
}
```

---

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