Errors
Every error a wrong query can cause, keyed on its stable type slug — the problem+json body the API sends and the machine-readable extras.
On this page (5)
Errors Documentation
When a request to the Whisper API fails, the response body tells you what went wrong and, for query errors, usually how to fix it. This page covers that body, the type slugs the engine returns, and what to do about each one.
One thing that is not on this page: a query that succeeds but returns zero rows. A name the graph does not hold is not an error: the answer is 200 with zero rows, plus an unknown-label or unknown-relationship-type advisory for a misspelt schema name, or a discovery block for a hostname the graph does not hold yet. Check CALL db.labels() and CALL db.relationshipTypes() first, and see Best Practices.
Error format
Errors come back as an RFC 7807 problem document, sent as Content-Type: application/problem+json: a type URI under https://whisper.security/errors/, a title, a status, a detail, an instance and a timestamp. A query error adds a suggestions array that proposes a rewrite, and some types add machine-readable fields of their own: query-unservable carries a reason, for instance.
The type slug is the stable surface. Branch on it, and never on the prose in detail, which is written for a human and changes.
An unbound variable, captured from the live API on 2026-11-25:
{
"type": "https://whisper.security/errors/query-error",
"title": "Query Error",
"status": 400,
"detail": "Variable 'nosuchvar' is not defined in this scope. Bind it with MATCH (nosuchvar:LABEL …), WITH … AS nosuchvar, UNWIND … AS nosuchvar, or YIELD nosuchvar.",
"instance": "/api/query",
"timestamp": "2026-11-25T01:29:46.000000000Z",
"suggestions": [
{
"kind": "undefined_variable",
"rationale": "The query references 'nosuchvar', which was never bound by a preceding MATCH / WITH / UNWIND / YIELD in scope. Bind it first, or reference a variable that is in scope.",
"rewrite": "Introduce every RETURN/WHERE variable with a preceding MATCH (var:LABEL ...) / WITH var / UNWIND ... AS var / YIELD var.",
"confidence": "high",
"safeToAutoRetry": false
}
]
}
Each suggestions entry carries a kind, a rationale, a rewrite, a confidence, and safeToAutoRetry — the field an automated client should read before re-running anything on your behalf. suggestions is sometimes present and empty; treat that the same as absent.
Status codes and type slugs
| Status | type | Condition | What to do |
|---|---|---|---|
400 | query-error | The Cypher is malformed, names an unbound variable or an unsupplied $parameter, or calls a procedure the engine does not have. Also what a write clause returns. | Fix the query. detail names the position, the variable or the procedure, and suggestions proposes a rewrite. See Syntax & Clauses. |
400 | query-validation-error | The request carried no statement — an empty query field, or a body with no query in it — or asked for something a batch does not support, such as nodeListMaps. | Send a query field with a statement in it, and send each statement separately when the option needs it. |
400 | ambiguous-request | The body carries both query and its alias q. The keys field lists the two. | Send the Cypher under one of them. |
400 | query-unservable | The engine cannot plan the shape. reason says which. Two common ones: global_edge_count (an edge count with both endpoints bare) and unanchored_virtual_edge_scan (a computed edge with neither endpoint labelled or anchored). Others name an unanchored variable-length scan, an indicator filtered on a key that has no index, a walk that cannot be answered from the side it starts on, or a traversal that expands too far. The list of reasons grows, so handle an unknown reason by the type and read detail. | Label or anchor at least one endpoint of a computed edge, and bound a wide expansion with WITH ... LIMIT before you aggregate. For a per-type edge total, CALL db.relationshipTypes() YIELD type, count is precomputed and instant; for the global total, read GET /api/query/stats. |
400 | schema-drift | The query uses a token from another graph product that has no safe automatic rewrite, such as the label :Certificate. | Use the name suggestions gives. Names that map one-to-one are rewritten instead and carry a schema-drift-rewrite advisory. |
400 | generation-pin-invalid | An atGeneration token is not a valid generation. | Pass the tokens exactly as X-Whisper-Datasets reported them. |
400 | missing-query-parameter | The GET or form-encoded form was called with no q. | Send the query as ?q= or a form field named q, or use POST with a JSON body. |
400 | malformed-request-body | The request body is not valid JSON, or a field such as timeout or projectionFull has the wrong type. | Check the body or the parameter. Request fields are listed in the API Reference. |
401 | api-key-rejected | The key is unknown, revoked, expired or malformed. The query did not run. The body carries reason (key_unknown or key_malformed), error (invalid_api_key), message and get_key. | Fix the key, or drop the key from the request to run keyless. See Confirm the key was accepted. |
403 | not-entitled | The query reads data the key is not entitled to. reason names the data: contact_data_not_entitled for WHOIS and registry contact data, or the company-data reason for company and technology data. This is an access answer, not an empty result. | Sign in or ask for access, then run the query again. |
403 | (not a problem document) | A browser page sent a cross-origin request; the API does not answer those. | Call the API from a server or a script, and put your own backend between a browser front end and the API. |
404 | unknown-endpoint | The path is not an API endpoint. The body names the one endpoint to send Cypher to. | Send every query, procedure calls included, as POST /api/query. |
405 | method-not-allowed | The endpoint does not accept the HTTP method. GET and POST are accepted. | Use GET or POST. |
409 | generation-mismatch | An atGeneration pin names a generation this node does not serve. The body carries pinned, served and retryable. | Retry a few times after Retry-After, since another node may hold it, then re-pin to what served reports. |
409 | generation-unpinnable | An atGeneration pin names a dataset that cannot be pinned. retryable is false. | Do not retry; drop that dataset from the pin. |
415 | unsupported-media-type | The Content-Type is neither JSON nor form-encoded. | Send Content-Type: application/json on POST. |
421 | watch-plane-not-hosted | A whisper.watch call needs a routing header it did not carry. The body carries route_hint. | Resend the same request with the routing header route_hint names; see Watches and alerting. |
500 | internal-error | An unexpected server error. | Retry. If it persists, simplify the query and quote X-Request-Id. |
503 | overloaded, service-draining, graph-draining, external-api-unavailable | The server did not run the query, or a procedure could not reach an outside service. Not an empty answer. | Retry after the interval in the Retry-After header. |
A procedure that calls an outside service can also answer external-api-error, with the status the service returned. Treat it like 503: retry later, or simplify the call. Every slug above is stable; key your handling on the slug and read detail for the specifics. The API is read-only: write clauses (CREATE, MERGE, SET, DELETE, REMOVE, DROP) are refused as a query-error before anything runs, with a readonly_engine suggestion whose safeToAutoRetry is false. Nothing you send can modify the graph. For any status not in this table, retry once, then report it with the request id.
Confirm the key was accepted
With no key, the request runs keyless and answers 200; the response header X-Key-Status reads absent, and CALL whisper.quota() reports isAnonymous as true. A key that is unknown, revoked, expired or malformed is rejected: the answer is 401 api-key-rejected, the query does not run, and X-Key-Status reads unknown or malformed. Fix the key, or remove the key from the request to run keyless. If the server cannot check a key at that moment, it answers 503, never 401; retry after the Retry-After interval. The accepted header formats are on the HTTP API page.
The MCP connector rejects an unrecognised key the same way. A working session on one surface still says nothing about the key your other client sends, so confirm each on its own.
When a backing service is briefly unavailable
A procedure that reads an outside service at call time answers 503 external-api-unavailable when it cannot reach that service, and external-api-error when the service itself answers with an error. Neither is an empty answer: do not read it as "nothing found". Retry after the Retry-After interval, and key your handling on the type slug.
Reporting issues
The response header X-Request-Id identifies the request, and is present on every response, signed in and signed out. Quote it when you report a problem; it is how support finds your request.
When opening a support ticket, include:
- The full request URL and request body
- The full response, headers and body
- The
X-Request-Idheader from the response - The time the request was made (UTC)
Start at Support, or email support@whisper.security.