inspector.restDocs

Error codes

Error codes and HTTP statuses that the inspector.rest ingest endpoint and MCP server return, with their messages.

The ingest API, the MCP server and the other services use the same error body:

Error bodyJSON
{ "error": { "code": "quota_exceeded", "message": "…", "hint": "…" } }

hint tells the caller what to do next. MCP tools return the same object with isError: true.

Ingest and general

CodeHTTP statusMessage
invalid_key401The ingest key is invalid or revoked.
organization_suspended403This organization is suspended.
quota_exceeded429The monthly request limit of the plan is reached. New requests are not recorded until the period resets or the plan is upgraded.
payload_too_large413The request body is too large. Split it into smaller batches.
unsupported_media_type415Send the body as application/json.
disk_full503The storage server is out of disk space.
service_unavailable503The service is temporarily unavailable.
internal_error500Something went wrong on our side.
validation_failed400The request did not pass validation.
invalid_json400The request body is not valid JSON.
rate_limited429Too many requests. Try again later.

MCP and queries

CodeHTTP statusMessage
invalid_token401The access token is invalid, expired or revoked.
forbidden403You do not have permission to do this.
scope_denied403This connection cannot access that environment.
tool_disabled403This tool is turned off for this connection.
environment_ambiguous400Specify the environment.
not_found404Not found.
unknown_filter400Unknown filter or parameter.
invalid_cursor400The cursor is not valid. Start again without a cursor.
invalid_regex400The regular expression is not valid.
binary_body409This body is binary. Download it instead of reading it as text.
body_not_captured404This body was not captured.
upstream_unavailable502The data server could not be reached.
bad_gateway502An upstream service failed.