# `Weavr.Error.InvalidRequest`
[🔗](https://github.com/iamkanishka/weavr/blob/main/lib/weavr/error.ex#L100)

Raised/returned for client-side validation failures that are caught
*before* a request is sent — e.g. a required parameter is missing, or
an enum value isn't one Weavr accepts. Catching these early saves a
round trip and gives a much more specific error than a generic 400.

# `t`

```elixir
@type t() :: %Weavr.Error.InvalidRequest{
  __exception__: true,
  field: atom() | String.t() | nil,
  message: String.t()
}
```

---

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