Untch docs

Common ASP error codes and how to fix them.

Errors

ASP errors use a consistent envelope:

{
  "code": "STRING_CODE",
  "message": "human-readable detail",
  "retryable": false,
  "docsUrl": null
}

Common codes

CodeMeaningFix
POLICY_ID_REQUIREDMissing policyIdPass decimal string policy id
POLICY_NOT_FOUNDUnknown policyCreate or sync policy first
POLICY_BINDING_MISMATCHIntent hash ≠ stored policy hashRebuild intent from current rules
INTENT_REQUIREDNo intent or intentHashSend full intent or create first
INTENT_NOT_FOUNDHash not in this instance cacheResubmit inline intent
INTENT_HASH_MISMATCHInline body ≠ provided hashRecompute or drop intentHash
IDEA_REQUIRED / NAMES_REQUIRED / NAME_REQUIREDBuilder tools missing inputSee tool body schema
RECEIPT_ID_REQUIREDlog_receipt missing idPass receiptId from preflight
RECEIPT_WRITER_UNWIREDNo durable receipt storeRetry later or contact operator
POLICY_STORE_NOT_CONFIGUREDASP missing policy DBOperator infrastructure issue

HTTP 402 is not an application error envelope. It is payment required for a priced route.

Related