# Function: getHTTPStatusCode()

> 

> **getHTTPStatusCode**(`json`, `errors`?): `number`

Defined in: [packages/server/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts:76](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/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)[] |
| `errors`? | readonly (`undefined` \| [`TRPCError`](https://trpc.io/docs/typedoc/server/index/classes/TRPCError.md))[] |

## Returns

`number`

## See

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