RememberStackremember.dev/docs

Errors and status codes

Pagination follows the shared Pagination and truncation contract (D154).

This page collects every error a client can meet: HTTP statuses from a deployment, the codes SQL queries report, the structured errors the MCP tools return, and the status values that appear in results.

A "no" that is an answer — nothing matched, the entity is unknown, a limit was reached — is not an error. It comes back as 200 with a typed negative in the envelope. Read that first when a result is empty.

Error shapes

A deployment's error body always has one key, detail:

FormExample
String{"detail": "body_too_large"}
Object with code{"detail": {"code": "document_forgotten", "forget_id": "…", "forgotten_at": "…"}}
Object with code and message{"detail": {"code": "invalid_parameter", "message": "unknown argument(s): limit"}}
Validation list{"detail": [{"type": "less_than_equal", "loc": ["query", "k"], "msg": "Input should be less than or equal to 400", "input": "500", "ctx": {"le": 400}}]}

Branch on the status and the code or string, not on message.

The remember Python client raises remember.MemoryApiError for all of them, with status_code (0 for a network failure), detail (the string, or the message) and code (set on /query/* routes when the body carries a known code at its expected status). A 429 raises its subclass remember.RateLimited, whose code is rate_limited or concurrency_limited and whose retry_after holds the Retry-After seconds. An unknown_tag raises its subclass remember.UnknownTag, whose tags lists the unregistered tags; conflict and tag_limit_exceeded keep their code in code. wait_for_readiness raises remember.PipelineDeadLettered when a stage it waits on is dead_letter (Python SDK).

Deployment HTTP statuses

StatusdetailMeaningWhat to do
400cursor is malformedGET /documents got a cursor it cannot read.Restart paging without a cursor.
400the cursor problemsection_history or document_references got a cursor that is malformed or belongs to another call.Restart paging without a cursor, with the same arguments.
400invalid_pathThe request path, after percent-decoding, contains an ASCII control character (for example %0A). Refused before authentication and routing.Send a path without control characters.
401a perimeter credential is requiredNo Authorization header, and the deployment requires one.Send Authorization: Bearer <token>.
401perimeter authentication failedThe credential is not accepted: wrong secret, bad signature, expired, revoked, or unknown signing key.Get a fresh token.
403credential is for another deploymentThe credential is valid for a different deployment.Use the token issued for this deployment, or the right REMEMBER_API_URL.
403credential may not perform this operationThe credential's scope does not cover the route (for example a read credential on POST /ingest or POST /documents/{doc_id}/archive, or an ingest credential on GET /deployment).Use a write credential. See Scopes.
404Not FoundNo such route (includes /connectors* and /openapi.json, which a stock deployment does not serve).Check the path.
404document_not_foundPOST /documents/{doc_id}/archive or /unarchive for a document that does not exist, or a period, reference or section route for a document that does not exist or is forgotten; POST /documents/{doc_id}/forget for a document that never existed (forgetting a forgotten document again answers 200 with its record).Do not retry; check the id with GET /documents.
404forget_not_foundGET /forgets/{forget_id} for a forget record that does not exist.Check the id with GET /forgets.
404version_not_foundA period or reference route for a version that is not a live version of the document.Check the version_id.
404chunk_not_foundPOST /documents/references with a chunk_id that does not exist or whose document is deleted.Check the id.
404{"code": "unknown_tag", "message": …, "tags": […]}PATCH or DELETE /tags/{tag_id} for a tag id that is not registered, or was deleted.Check the id with GET /tags.
404the operation namePOST /operations/{name} with a name that is not one of the four.Use GET /operations for the names.
404{"code": "saved_query_not_found", …}No saved query or version by that name.Check GET /query/saved.
405Method Not AllowedRight path, wrong method.Check the method.
409{"code": "layer_unavailable", …}A read needs a processing layer (layer) the deployment does not process.Use a read of a served layer, or ask the operator to switch the layer on.
409{"code": "document_forgotten", "forget_id": …, "forgotten_at": …}POST /ingest of bytes or a source identity (source_kind + source_ref) that belongs to a forgotten document.Do not retry. To add the content back on purpose, send the ingest again with allow_forgotten=true.
409{"code": "forget_not_complete", "forget_id": …}POST /ingest with allow_forgotten=true while the matching forget is still erasing. Nothing was stored.Retry once GET /forgets/{forget_id} no longer shows erasing.
409{"code": "version_key_conflict", …}POST /ingest with a version_key that already names another version of the document (version_id), or the latest version with other bytes. Nothing was stored.Use a new key, or none. To put an older edition back in force, declare a period on it.
409{"code": "effective_period_conflict", …}POST /ingest or PUT …/effective-periods with a start another version of the document already declares (version_id). Nothing was changed.Correct the other version's periods first, or choose another start.
409{"code": "conflict", "message": …}POST /tags or PATCH /tags/{tag_id} with a name another tag already has, in any letter case.Use the existing tag, or choose another name.
409{"code": "tag_limit_exceeded", "message": …}A tag write would leave the deployment with more than 10,000 tags or a document with more than 64. Nothing changed.Delete tags you no longer use, or remove some from the document.
409{"code": "saved_query_…", …}A saved query cannot run. See SQL query codes.See the code.
411length_requiredPOST /ingest without Content-Length on a deployment that caps bodies.Send the length (curl and the remember client do).
413{"code": "reference_set_too_large", "limit_bytes": 67108864}A PUT …/references body over 64 MiB.Send a smaller set: the limit applies to one version's complete set.
413body_too_largeThe ingest body is over the cap.Split the document.
422validation listA parameter or body field is missing, of the wrong type, out of range, or not declared. Includes a valid_at or believed_at without a UTC offset, and an unknown status on GET /query/saved.Check the field named by loc.
422content_type_mismatchThe ingest MIME hint contradicts the detected byte class. Nothing was stored.Send the correct file and a compatible MIME hint.
422ambiguous_office_formatA legacy Office container names no single Word, Excel or PowerPoint document.Save the file again from its Office application, or in a current format.
422{"code": "invalid_parameter", …}An operation argument or SQL-query argument was refused.Fix the argument named in message.
422source_kind and source_ref must be supplied togetherIngest with half a source identity.Send both or neither.
422source timestamps, revisions, living mode, version keys and effective periods require source_kind/source_refIngest lineage options without a source identity.Add source_kind and source_ref.
422source_modified_at must be timezone-aware (include Z or a numeric UTC offset)Ingest timestamp without an offset. The same message names effective_from or effective_until.Include Z or a numeric UTC offset.
422effective_until requires an earlier effective_fromIngest with an end but no start, or an end not after the start.Send a start, and an end after it.
422{"code": "effective_time_requires_snapshot", …}An effective period for a living document.Periods apply to snapshot documents only.
422{"code": "unknown_tag", "message": …, "tags": […]}POST /ingest or POST /documents/{doc_id}/tags names a tag that is not registered, or a tags filter on POST /documents/search, POST /search/claims or POST /search/chunks does; tags lists every one. Nothing was stored, changed or searched.Register the tag with POST /tags, or fix the spelling (check GET /tags).
422{"code": "invalid_reference_set", "line": …, "message": …}A line of a PUT …/references body is not a valid reference. Nothing was recorded.Fix the named line.
422X-Ingest-Principal-Kind and X-Ingest-Principal-Ref must be supplied togetherTrusted attribution with one header.Send both or neither.
422invalid_ingest_principalTrusted attribution with an unknown kind or bad reference.Kind is user, api_credential or service; reference is 1–255 printable ASCII characters.
429{"code": "rate_limited", …}The credential or the deployment has used its request rate (admission limits, off unless configured).Wait the Retry-After seconds, then retry.
429{"code": "concurrency_limited", …}Too many requests of the credential or the deployment are running at once.Wait for your other requests to finish (Retry-After is 1), then retry.
500Internal Server ErrorAn unhandled failure: a defect.Report it.
503model provider unavailableA search, lookup, resolve or assured-operation call could not embed its query.Retry with back-off.
503live graph is busyNo graph traversal slot was free in time.Retry with back-off.
503live graph result unavailableA traversal and the rows it pointed at disagreed.Retry.
503live graph timed outA traversal ran past its time limit, or its database connection failed.Retry with back-off; narrow hops, max_hops or predicates if it persists.
503{"code": "…_unavailable", …}A store needed by a SQL query was unavailable. See SQL query codes.Retry with back-off.

SQL query codes

SQL queries report problems with one of 27 codes. For the statement routes (POST /query/sql, POST /query/sql/explain, POST /query/saved/{namespace}/{name}/run), a problem with the statement itself comes back as 200 with the code in the result's error_code and termination_reason rejected or failed. A code raised outside the statement — a saved query that cannot run, a refused discovery argument — is an HTTP error at the status below, with {"detail": {"code": "…", "message": "…"}}.

CodeHTTP statusMeaningWhat to do
parse_error422The SQL does not parse, or contains a NUL byte.Fix the syntax.
multiple_statements422More than one statement.Send one statement.
statement_not_allowed422Not a read-only SELECT/VALUES/WITH, or uses a construct outside the grammar (row locks, SELECT INTO, TABLESAMPLE, WITHIN GROUP, a reserved __rememberstack_ name).Rewrite within the grammar.
relation_not_allowed422A table, view or schema outside memory_v1.Use the views.
function_not_allowed422A function not on the allowlist (including now()), a qualified function outside memory_v1/pg_catalog, a table function, an XML expression or a session keyword.Use an allowed function; pass times as parameters.
function_placement_not_allowed422A public function outside a top-level FROM item, packed with others in ROWS FROM, or given a computed argument.Follow the placement rules.
operator_not_allowed422An operator or cast type outside the allowlist.Use an allowed operator or cast.
invalid_parameter422Wrong parameter count, non-contiguous placeholders, too many or too large parameters, SQL text over 65,536 bytes, a bad filter, k below 1, a graph function without $1 as this deployment's id, or a graph call with only one clock.Fix the parameters.
unbounded_recursion422A recursive CTE that does not follow the template, or more than one.Follow the recursion template.
schema_version_mismatch409The database's memory_v1 views do not match the server's manifest.An operator must finish the upgrade (migrations).
quota_exceeded409More than 3 function calls of one category, the statement's 200-candidate search budget is spent, the per-minute statement-time budget is spent, or the operator has disabled SQL queries.Simplify the statement or wait a minute.
concurrency_exceeded409Too many statements running for this caller (2) or deployment (8).Retry after the others finish.
saved_query_not_found404No saved query or version by that name, or the deployment has no registry.Check GET /query/saved.
saved_query_disabled409The saved query is disabled, or the version is a draft, deprecated or broken.Run an active version.
saved_query_incompatible409A saved-query version failed a validation or activation check (raised by the deployment's authoring tooling, not by the HTTP routes).Revalidate the version.
saved_query_revalidation_pending409The query space changed since the version was validated.Revalidate the saved query.
statement_timeout500The statement ran past its timeout.Narrow the statement, add filters or a LIMIT.
lock_timeout500A lock was not available within the lock timeout.Retry.
cancelled500The statement was cancelled. Not produced by this release.Retry.
resource_limit500Memory, temporary-file or connection limits were exceeded.Narrow the statement.
execution_error500The statement failed while running (for example a bad cast of a parameter), or the saved-query registry could not be read.Check parameter values and casts.
pg_unavailable503The database is unavailable.Retry with back-off.
p1_unavailable503The search index could not be searched or read, or no embedder is configured.Retry; check readiness (p1).
graph_unavailable503A graph function returned no usable status.Retry; check readiness (live_graph).
corpus_body_unavailable503Chunk text could not be read. Not produced by this release.Retry.
generation_unavailable503The search index has no usable embedding generation, or requested chunks span more than one.Retry after indexing completes; fetch chunks from one generation.
confirmation_failed500Nominated rows could not be confirmed against the database.Retry.

When a code arrives inside a 200 result, termination_reason is rejected if the statement was refused before the engine opened a transaction (parse and grammar codes, unbounded_recursion, parameter-count and size problems, quota_exceeded, concurrency_exceeded, schema_version_mismatch), and failed if it was refused or failed after that (bad search filters, timeouts, store codes).

MCP tool errors

With remember --json <command>, the CLI writes an error object as one line of JSON on stderr and exits nonzero. Warnings and login progress can appear on other stderr lines. Default CLI output prints the cause, code and next action as text.

The MCP server returns a tool failure with "isError": true and one JSON text block containing the same error fields. Every tool — ingest, pipeline_readiness, archive_document, unarchive_document, forget_document, the assured operations and the SQL query tools — returns the same object:

{
  "error": {
    "code": "body_too_large",
    "status_code": 413,
    "detail": "Ingest body exceeds the deployment size limit.",
    "retryable": false,
    "agent_action": "Split or shorten the document; do not retry the same payload."
  }
}

status_code is the deployment's HTTP status, 0 when no answer arrived, and null when the call never reached the deployment. reason_code, request_id and retry_after (seconds) appear only when known. When the deployment sent its own code — a SQL query code from the tables above, or rate_limited / concurrency_limited — code is that code.

codestatus_coderetryableagent_action
invalid_argumentsnullnoFix the tool arguments and retry. (Or, when more than one body was given: Supply exactly one body source: path, text, or content_base64.)
unknown_toolnullnoCall tools/list and use one of the listed tools.
project_routing_unavailablenullnoCall the tool again without project.
read_onlynullnoTell the user this server cannot change memory.
source_lineage_pairnullnoSend both source_kind and source_ref, or neither. (Or: Provide source_kind and source_ref together with lineage fields.)
empty_bodynull, or the deployment'snoProvide non-empty path / text / content_base64 content.
encoding_errornullnoRemove lone surrogates / invalid code points, or send content_base64 for binary.
path_not_allowednullnoPass a clean filesystem path without NUL characters. / Use text or content_base64, or ask the operator to configure REMEMBERSTACK_MCP_INGEST_ROOTS. Do not retry path until roots are set. / Place the file under an allowlisted root, or use text/content_base64. Ask the operator to extend roots only when intentional.
path_not_regular_filenullnoPoint path at a regular file, or send text/content_base64.
path_unreadablenullnoPass a regular filesystem file path. / Check path on the machine running the MCP server (not the remote engine host).
path_too_largenullnoSplit the file, raise the local resource guard only if intentional, or use a deployment that publishes a higher capability limit. / Split the file or raise the configured read cap.
confirmation_requirednullnoAsk the user to confirm that this document is to be forgotten for good, then call again with confirm=true. (forget_document without confirm: true; nothing was forgotten.)
document_not_found404noarchive_document, unarchive_document, forget_document: Do not retry. Check the doc_id with the user. (section_history, update_document_tags: Do not retry. Check the doc_id.)
document_forgotten, forget_not_complete409noRead the detail; fix the call. Do not retry it unchanged. (ingest of forgotten content; see Adding forgotten content back.)
unknown_tag, conflict, tag_limit_exceededas sent (422 or 404; 409)noRead the detail; fix the call. Do not retry it unchanged.
chunk_not_found404noDo not retry. Check the id. (document_references with a chunk_id.)
layer_unavailable409noThis deployment does not process the <layer> layer. Use the tools tools/list offers, such as claims_and_sources_context.
body_too_large413noSplit or shorten the document; do not retry the same payload.
unauthorized401noThe key is missing, expired or revoked: run remember login or replace REMEMBER_API_KEY.
insufficient_permission403noThe key may not do this here: use a key with the needed permission for this deployment.
rate_limited, concurrency_limited429yesWait retry_after seconds (if given), then retry; do not retry sooner. Lower the request rate or run fewer calls at once.
SQL query codesas sent, or null when refused before sendingfor quota_exceeded, concurrency_exceeded, timeouts and store codesRetry later with back-off. / Read the detail and fix the query or its arguments.
engine_client_errorthe HTTP status (4xx)noRead the detail; fix the call. Do not retry it unchanged.
engine_unavailablethe HTTP status (5xx)yesRetry with back-off (3–5 attempts, 2s→30s). If still failing, report an operator outage.
transport_error0yesRetry with back-off; check the deployment URL and network.
local_backend_errornullnoReport a composition/contract defect; do not retry the same call.
internal_errornullnoUnexpected internal failure. Do not busy-retry; report the error (and any request_id) to an operator or as a product defect.

Local CLI errors

codeCauseNext action
invalid_argumentsA flag, argument or connection setting is invalid.Check the command's help, then fix the input.
missing_credentials, credentials_unusableThe command needs a key or cannot read the stored entry.Sign in, supply the required key, or fix the credential file.
stored_key_refusedThe configured destination is outside the stored key's allowed audience.Supply the intended destination's key explicitly via REMEMBER_API_KEY or --api-key.
device_grant_failed, issuer_errorThe browser grant failed or its issuer could not be used.Check the issuer and network, rerun login and approve promptly.
confirmation_requiredThe permanent forget was not confirmed.Get confirmation, then rerun with --yes.
doctor_failed, setup_failedAt least one diagnostic or harness setup step failed.Resolve the failed check or fix the named harness configuration.
command_unavailableAn engine operator command was invoked outside its container.Run it in the engine container or use the public operations command.
invalid_configurationAn environment setting or input field failed validation.Correct the named settings or arguments.
file_unreadable, local_io_errorA command could not read, write or open a local resource.Check its path, permissions and available disk space.
launcher_unavailableSetup could not find an installed CLI or runner.Install Remember, then check PATH.
hosted_credentials_presentThe file still holds a hosted key when configuring a self-hosted engine.Run remember logout to revoke it first.
durability_unconfirmed, revocation_unconfirmedA credential change could not be confirmed on disk or by its issuer.Inspect the current sign-in state and follow the accompanying next action.
mount_failed, unmount_failedMountable failed or returned an invalid event.Check the mountpoint, installed client and stderr diagnostics before retrying.
work_ledger_error, graph_catalog_errorAn engine operator command could not complete.Inspect the processing row or check database access and migrations as directed.
interruptedThe command was interrupted.Check the outcome before rerunning.

A deployment that requires authentication returns unauthorized without a valid key. Self-hosted deployments can also allow anonymous access.

JSON-RPC errors

CodeMessageCause
-32700the parse errorThe request line is not JSON.
-32600invalid JSON-RPC request / request is not an objectNot a JSON-RPC 2.0 request.
-32601unknown method '<name>'A method other than initialize, ping, tools/list, tools/call.
-32602bad initialize params / bad params / bad argumentsMalformed parameters.
-32603the error texttools/list could not read the deployment (unreachable, or the key was refused).

See MCP tools.

Status values

Document version status

ValueMeaning
ingestingStored; conversion not started.
convertingBeing converted to Markdown.
structuringBeing split into sections.
readyConverted and structured. Extraction may still be running; use readiness.
failedConversion or structuring failed; error says why.
deletedRemoved by a forget. Not listed by GET /documents.

Pipeline stage status

ValueMeaning
missingNo work exists yet for this stage and component version.
pendingQueued.
runningIn progress.
succeededDone.
skippedNot needed for this version; counts as done.
failedThe last attempt failed and a retry is scheduled. Keep waiting.
dead_letterFailed for good: every attempt is used. Stop waiting and report it. The Python client's wait_for_readiness raises remember.PipelineDeadLettered here, naming the version and stage.

Readiness capability reasons

See Ingest.

Saved query status

ValueRuns?Meaning
draftnoWritten, not activated.
pending_revalidationnoWas active; the query space changed and it must be revalidated.
activeyesThe version that runs.
deprecatednoReplaced by a newer version.
disablednoTurned off.
brokennoFailed validation.

SQL query termination reason

completed, rejected, failed. See SQL queries.

Connector status

active, paused, error. The connector routes are not served by a stock deployment in this release.