# Type Alias: TRPCResponse<TData, TError>

> 

> **TRPCResponse**\<`TData`, `TError`\>: [`TRPCErrorResponse`](https://trpc.io/docs/typedoc/server/rpc/interfaces/TRPCErrorResponse.md)\<`TError`\> \| [`TRPCSuccessResponse`](https://trpc.io/docs/typedoc/server/rpc/interfaces/TRPCSuccessResponse.md)\<`TData`\>

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

A response to a call: a success or an error.

## Type Parameters

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

## See

https://trpc.io/docs/rpc#http-response-specification
