Errors
Errors follow the standard tRPC envelope. Over HTTPS, the response carries an error object and an appropriate status code derived from the tRPC error code.
For example,
{
"error": {
"json": {
"message": "Release not found",
"code": -32004,
"data": { "code": "NOT_FOUND", "httpStatus": 404 }
}
}
}Common Error Codes
400
BAD_REQUEST
The input failed validation (wrong type, missing required field).
404
NOT_FOUND
The requested resource does not exist.
429
TOO_MANY_REQUESTS
Rate-limited, too many requests were made in a short time.
500
INTERNAL_SERVER_ERROR
Something went wrong on our side.