Home
Twirp
Twirp Error
Twirp Error
The error response format returned by all Twirp services when a request fails. Contains a string error code, human-readable message, and optional metadata.
Protocol Buffers RPC Go SDK Open-Source Protobuf
Properties
Name
Type
Description
code
string
String error code identifying the error type
msg
string
Human-readable error message providing additional context
meta
object
Optional key-value metadata providing additional error details
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://twitchtv.github.io/twirp/schemas/error.json",
"title": "Twirp Error",
"description": "The error response format returned by all Twirp services when a request fails. Contains a string error code, human-readable message, and optional metadata.",
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "String error code identifying the error type",
"enum": [
"canceled",
"unknown",
"invalid_argument",
"malformed",
"deadline_exceeded",
"not_found",
"bad_route",
"already_exists",
"permission_denied",
"unauthenticated",
"resource_exhausted",
"failed_precondition",
"aborted",
"out_of_range",
"unimplemented",
"internal",
"unavailable",
"data_loss",
"no_error"
]
},
"msg": {
"type": "string",
"description": "Human-readable error message providing additional context"
},
"meta": {
"type": "object",
"description": "Optional key-value metadata providing additional error details",
"additionalProperties": {
"type": "string"
}
}
},
"required": ["code", "msg"],
"examples": [
{
"code": "not_found",
"msg": "the requested resource was not found"
},
{
"code": "invalid_argument",
"msg": "phone number is required",
"meta": {
"argument": "phone_number"
}
},
{
"code": "unauthenticated",
"msg": "invalid credentials"
}
]
}
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/twirp-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.