# Function: getHTTPStatusCode()

> 

> **getHTTPStatusCode**(`json`): `number`

Defined in: [packages/server/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts:76](https://github.com/trpc/trpc/blob/a357903312114c6c08952de2c9edc51c713367be/packages/server/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts#L76)

The HTTP status for a response, or for a batch of them: `207` when the
responses' statuses differ.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `json` | [`TRPCResponse`](https://trpc.io/docs/typedoc/server/rpc/type-aliases/TRPCResponse.md) \| [`TRPCResponse`](https://trpc.io/docs/typedoc/server/rpc/type-aliases/TRPCResponse.md)[] |

## Returns

`number`

## See

https://trpc.io/docs/rpc#error-codes---http-status
