Skip to Content
Error codes

Error codes

Errors from the gateway itself. Your server’s own errors pass through untouched.

HTTPCodeMeaning
400bad_requestThe request body couldn't be read.
404server_not_foundUnknown, unpublished or suspended slug, or a path other than /mcp.
404server_not_on_gatewayThe publisher lists its own URL instead of a .mcp.co.tz address. Use the address on the listing.
405method_not_allowedUse GET, POST or DELETE.
413request_too_largeRequest body over 1 MB.
429rate_limitedA rate limit was hit. Wait for the number of seconds in Retry-After.
502upstream_unreachableCouldn't connect to the server, the address is blocked, or the server answered with a redirect.
503gateway_unavailableThe gateway can't route right now. Retry with backoff.
504upstream_timeoutThe 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