> ## 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.

# PermissionDeniedError

> The API key does not have permission for the requested operation (HTTP 403).

```typescript
class PermissionDeniedError extends ModusError
```

## Constructor

```typescript
PermissionDeniedError(message: string, options?: { statusCode: number; requestId: string; responseHeaders: Record<string, string>; body: string; code: string } | undefined): PermissionDeniedError
```

### Parameters

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

<ResponseField name={"options"} type={"{ statusCode: number; requestId: string; responseHeaders: Record<string, string…"} />

### Returns

`PermissionDeniedError`

## 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"} />
