> ## Documentation Index
> Fetch the complete documentation index at: https://colin-feat-client-cache-mode.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AuthorizationError

Defined in: [server/auth/types.ts:22](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/server/auth/types.ts#L22)

Thrown by authorization checks to produce a 403 response.
Any other error thrown during verification produces a 401.

## Extends

* `Error`

## Constructors

### Constructor

```ts theme={null}
new AuthorizationError(message): AuthorizationError;
```

Defined in: [server/auth/types.ts:23](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/server/auth/types.ts#L23)

#### Parameters

##### message

`string`

#### Returns

`AuthorizationError`

#### Overrides

```ts theme={null}
Error.constructor
```
