warm-server errors¶
Every failure of an API call is an RFC 9457 application/problem+json document:
{
"type": "https://github.com/writerslogic/warm/blob/main/docs/server/errors.md#invalid_request",
"title": "Invalid request",
"status": 422,
"detail": "top_k must be 1..=100",
"instance": "urn:hms:request:8f2c1b7a90d3e451",
"code": "invalid_request",
"request_id": "8f2c1b7a90d3e451",
"error": {"code": "invalid_request", "message": "top_k must be 1..=100"}
}
typeis a stable URI that resolves to the matching section below;codeis the same identifier as a plain string. Branch oncode, never ondetail, which is prose and may change.request_idechoes theX-Request-Idthe client sent (1 to 64 characters of[A-Za-z0-9._-]) or a generated one. Every response carries it as a header, and the server's log line for the request carries the same id.erroris the object the first SDK releases read. It is deprecated but present for the whole of/api/v1(seeversioning.md).- Internal failures return a fixed
detail; the cause is in the server log under the same request id. Details never include document text, metadata, vectors or credentials. Retry-After(seconds) accompaniesrate_limited,server_busy,shutting_down,idempotency_in_flightandquota_exceeded.- Failures raised by the HTTP layer before routing (a request line or header that is not valid HTTP, headers larger than the limit) are answered by the transport with a bare status and no body.
invalid_json¶
- The body is not valid JSON, or has the wrong shape for the endpoint.
invalid_body¶
- A request-body transport error reached the handler before the body completed. Its underlying error text is omitted from the response. JSON writes have not executed or reserved an idempotency key; failed restore uploads are removed without installing the archive. NDJSON ingest can retain batches committed before the failure: reconcile the stored records before retrying. A broken connection may prevent delivery of this response. Size-limit violations remain 413, and body deadlines remain 408.
invalid_tenant¶
X-Tenant-IDoccurs more than once or is not 1 to 64 characters of[A-Za-z0-9_-].
invalid_request¶
- The body parsed but a value is not acceptable: wrong vector length or non-finite values,
top_kout of range, an id with control characters or the reservedhms:prefix, text that does not fit one chunk, a batch over the limits, an archive that is not a valid store, a malformed query string. Streamed ingestion can retain earlier committed batches; reconcile stored records before retrying.
unauthorized¶
- Missing, unknown, expired, disabled or wrong credentials.
WWW-Authenticate: Beareris set.
forbidden¶
- The key is valid but lacks the scope the operation needs (
read,writeoradmin).
tenant_forbidden¶
- The key is not valid for the tenant addressed, or the operation needs a key valid for every tenant.
not_found¶
- No such route, document or snapshot.
method_not_allowed¶
- The route exists but not for this method.
request_timeout¶
- The body did not arrive within
--body-timeout-seconds.
conflict¶
- The request conflicts with the current state (for example a tenant store closed while the operation was starting; retry).
index_unavailable¶
- A query explicitly requested
index: "graph", but no graph index is built. Selectindex: "exact"or"auto"to allow a scan, or run index maintenance when the tenant has enough vectors to meet--graph-min-rows. The query did not write documents.
idempotency_in_flight¶
- Another request with the same
Idempotency-Keyis still running. Retry after the indicated delay to receive its recorded response.
idempotency_key_reused¶
- The
Idempotency-Keywas already used with a different method, path, tenant or body.
idempotency_reconciliation_required¶
- The original request may have executed, but its response is unavailable: the worker panicked, a process stopped between reservation and durable response recording, the response could not fit the replay byte budget, or erasure/restore invalidated the response. Once store replacement starts, retained keys require reconciliation even if restore later rolls back. The key remains reserved through its retention window, including across restart. Restart conservatively starts a fresh window. Inspect the resulting state before deliberately issuing a new operation. This response has no
Retry-After; blindly retrying with a new key or after expiry can repeat a committed mutation.
payload_too_large¶
- The body, stream, line or archive exceeds its limit (
--max-body-bytes,--max-stream-bytes,--max-stream-line-bytes,--max-restore-bytes).
unsupported_media_type¶
- The stream endpoint needs
Content-Type: application/x-ndjson.
rate_limited¶
- The tenant exceeded
--rate-limit-rps/--rate-limit-burst. Retry afterRetry-After.
quota_exceeded¶
- The write would take the tenant over
--max-documents-per-tenant. Nothing was written. Delete documents or raise the quota.
internal¶
- An unexpected failure; see the server log for the request id.
resource_limit¶
- The query exceeded its work, frontier, or retained-byte budget. No partial answer is returned. Narrow the query or change the applicable budget before retrying; waiting alone does not resolve this limit, so there is no
Retry-Afterheader. The Node memory API uses the sameresource_limitcode; raw native Node calls carry a[resource_limit]prefix.
mutation_committed¶
- The journal mutation is durable, but publication, audit, provenance, or cleanup failed. Inspect the resulting state and reopen or reconcile it before retrying. A failure with this code does not mean that nothing was written. Use stable IDs and the idempotency key when retrying a logical operation. Unlike transient server errors, this response remains in the idempotency cache. The same key replays it during its TTL without repeating the durable mutation. If its response cannot fit the replay byte budget, the key instead returns
idempotency_reconciliation_required. Reconcile state before starting a deliberate new attempt. Retained receipts and reconciliation markers survive restart.
mutation_uncertain¶
- Both journal commit synchronization and rollback synchronization failed, so the mutation may survive recovery. The store rejects further writes until reopened. Reopen and reconcile stable IDs before retrying; this error does not establish that the mutation was absent. Its idempotency key retains the failure through the durable receipt TTL, or requires reconciliation if the response exceeds the replay byte budget.
not_implemented¶
- Reserved for operations a build does not provide.
not_ready¶
/readyzwhile the server is starting or shutting down.
server_busy¶
- Work admission is full or timed out, or a new idempotency key cannot fit
--idempotency-capacitywhile existing keys remain protected. Safe to retry; this rejected attempt did not execute the operation.
concurrent_mutation¶
- Concurrent writes exhausted the memory API's bounded snapshot or planning retries. Retry after
Retry-After. Multi-batch forgetting can have a committed prefix; the same scope can be retried to finish it. Reads return a coherent revision or this error.
tenant_limit¶
--max-tenantsstores are open and none is idle enough to close.
tenant_busy¶
- A snapshot, restore, or maintenance operation holds the tenant store exclusively, or erasure is invalidating its retry receipts. Requests receive
Retry-After; other tenants are unaffected.
idempotency_storage_unavailable¶
- Durable retry protection could not reserve, invalidate, or clean up its records. Restore access to the receipt storage and restart the server. Reconcile any in-flight operation before retrying: a cleanup failure can occur after its business mutation. Startup rejects corrupt receipts instead of silently discarding protected keys.
shutting_down¶
- The server is draining and accepts no new work.