budget_closed: The budget is closed

The stream's budget was closed, so the spend (a tick, a meter, a hold, the confirm of a hold, or a payment receipt) is refused and nothing is billed. A budget closes only once every stream on it is revoked, so most requests on a closed budget answer revoked first; opening a new stream on a closed budget answers state_conflict.

What to do

On the wire

HTTP 409, error type halted.

A client that does not send Dynamo-Error-Detail: 1 gets the same body without errorDetail, except on the payment authorization and receipt routes and the test-fixture run route (POST /owner/v1/test-fixtures/streams/{id}/run), which send it to every client. The detailed body:

{
  "error": "halted",
  "reason": "budget_closed",
  "streamId": "stm_…",
  "detail": "…",
  "errorDetail": {
    "type": "halted",
    "code": "budget_closed",
    "message": "…",
    "param": null,
    "doc_url": "…/errors/budget_closed.md",
    "fix": "the budget is closed; open a new budget"
  }
}

See all error codes.