> ## Documentation Index
> Fetch the complete documentation index at: https://terminal49-mintlify-seo-audit-2026-10-05.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: ErrorMappingInterceptor

> ErrorMappingInterceptor in the Terminal49 TypeScript SDK maps non-2xx HTTP responses to typed Terminal49Error subclasses like RateLimit and ValidationError.

# Class: ErrorMappingInterceptor

## Constructors

### Constructor

> **new ErrorMappingInterceptor**(): `ErrorMappingInterceptor`

#### Returns

`ErrorMappingInterceptor`

## Methods

### onResponse()

> **onResponse**(`__namedParameters`): `Promise`\<`Response`>

#### Parameters

| Parameter | Type |
| - | - |
| `__namedParameters` | `Pick`\<`MiddlewareCallbackParams`, `"id"` \| `"request"`> & `object` |

#### Returns

`Promise`\<`Response`>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.