# Interface: TRPCErrorResponse<TError>

> 

Defined in: [packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:94](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts#L94)

An error response.

## See

https://trpc.io/docs/rpc#error-response

## Extends

- [`ErrorResponse`](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/ErrorResponse.md)\<`TError`\>

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `TError` *extends* [`TRPCErrorShape`](https://trpc.io/docs/typedoc/server/index/interfaces/TRPCErrorShape.md) | [`TRPCErrorShape`](https://trpc.io/docs/typedoc/server/index/interfaces/TRPCErrorShape.md) |

## Properties

### error

> **error**: `TError`

Defined in: [packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:53](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts#L53)

#### Inherited from

[`ErrorResponse`](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/ErrorResponse.md).[`error`](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/ErrorResponse.md#error)

***

### id?

> `optional` **id**: [`RequestId`](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/type-aliases/RequestId.md)

Defined in: [packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:29](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts#L29)

#### Inherited from

[`ErrorResponse`](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/ErrorResponse.md).[`id`](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/ErrorResponse.md#id)

***

### jsonrpc?

> `optional` **jsonrpc**: `"2.0"`

Defined in: [packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:30](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts#L30)

#### Inherited from

[`ErrorResponse`](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/ErrorResponse.md).[`jsonrpc`](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/ErrorResponse.md#jsonrpc)
