tRPC Error
A tRPC error response following the TRPC error format
API CompositionAPI FrameworkBFFEnd-to-End Type SafetyRPCTypeScript
Properties
| Name |
Type |
Description |
| error |
object |
|
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://trpc.io/schemas/error",
"title": "tRPC Error",
"description": "A tRPC error response following the TRPC error format",
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"json": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Human-readable error message"
},
"code": {
"type": "integer",
"description": "JSON-RPC error code"
},
"data": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"PARSE_ERROR",
"BAD_REQUEST",
"INTERNAL_SERVER_ERROR",
"NOT_IMPLEMENTED",
"UNAUTHORIZED",
"FORBIDDEN",
"NOT_FOUND",
"METHOD_NOT_SUPPORTED",
"TIMEOUT",
"CONFLICT",
"PRECONDITION_FAILED",
"PAYLOAD_TOO_LARGE",
"UNPROCESSABLE_CONTENT",
"TOO_MANY_REQUESTS",
"CLIENT_CLOSED_REQUEST"
],
"description": "tRPC error code"
},
"httpStatus": {
"type": "integer",
"description": "Corresponding HTTP status code"
},
"stack": {
"type": "string",
"description": "Stack trace (development mode only)"
},
"path": {
"type": "string",
"description": "The procedure path that threw the error"
},
"zodError": {
"type": "object",
"description": "Zod validation errors when input validation fails"
}
},
"required": ["code", "httpStatus"]
}
},
"required": ["message", "code", "data"]
}
},
"required": ["json"]
}
},
"required": ["error"]
}
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/trpc-error"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no email required.
A second provider on the same verified email joins the account you already have.