> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getmodus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ValidationError

> Client-side argument validation failed before a request was sent (for example an unsupported chat model id).

```typescript
class ValidationError extends ModusError
```

## Constructor

```typescript
ValidationError(message: string): ValidationError
```

### Parameters

<ResponseField name={"message"} type={"string"} required />

### Returns

`ValidationError`

## Properties

<ResponseField name={"body"} type={"string"} />

<ResponseField name={"code"} type={"string"} />

<ResponseField name={"requestId"} type={"string"} />

<ResponseField name={"responseHeaders"} type={"Record<string, string>"} />

<ResponseField name={"statusCode"} type={"number"} />
