Error codes
Errors from the gateway itself. Your server’s own errors pass through untouched.
| HTTP | Code | Meaning |
|---|---|---|
400 | bad_request | The request body couldn't be read. |
404 | server_not_found | Unknown, unpublished or suspended slug, or a path other than /mcp. |
404 | server_not_on_gateway | The publisher lists its own URL instead of a .mcp.co.tz address. Use the address on the listing. |
405 | method_not_allowed | Use GET, POST or DELETE. |
413 | request_too_large | Request body over 1 MB. |
429 | rate_limited | A rate limit was hit. Wait for the number of seconds in Retry-After. |
502 | upstream_unreachable | Couldn't connect to the server, the address is blocked, or the server answered with a redirect. |
503 | gateway_unavailable | The gateway can't route right now. Retry with backoff. |
504 | upstream_timeout | The server sent no first byte within 120 seconds. |
Every error links back here: error.data.docs points at the row for its code.
Example body
{
"jsonrpc": "2.0",
"id": null,
"error": {
"code": -32029,
"message": "Rate limit reached (ip). Retry after 12s.",
"data": {
"code": "rate_limited",
"request_id": "req_e019c47a2bd8f1e60c5ab7d4",
"docs": "https://docs.mcp.co.tz/errors#rate_limited"
}
}
}Last updated on