policy_not_found: The dry-run names a stream of another budget

A dry-run action names a stream that is not on the budget the dry-run is for. Nothing was evaluated.

What to do

On the wire

HTTP 409, error type state_error. Without Dynamo-Error-Detail: 1 every client receives {"error": "state", "reason": "policy_not_found", "detail": "…"} with no errorDetail: the policy routes add it only when the request sends that header, on a single-tenant core and on the hosted tier alike.

With Dynamo-Error-Detail: 1:

{
  "error": "state",
  "reason": "policy_not_found",
  "detail": "…",
  "errorDetail": {
    "type": "state_error",
    "code": "policy_not_found",
    "message": "…",
    "param": "policy",
    "doc_url": "…/errors/policy_not_found.md",
    "fix": "the stream is not on the budget named in the dry-run"
  }
}

See policies and all error codes.