amend_widen: An amendment may only narrow

The amendment would raise the cap above the stream's current cap. Amendments tighten a running node; they never widen it. A mandate amendment wider than the current mandate is refused as mandate_widen instead.

What to do

On the wire

HTTP 409, error type state_error.

Only the amend route (POST /owner/v1/streams/{id}/amend) answers this code, and it sends errorDetail to every client, with or without Dynamo-Error-Detail: 1:

{
  "error": "state",
  "detail": "…",
  "errorDetail": {
    "type": "state_error",
    "code": "amend_widen",
    "message": "…",
    "param": null,
    "doc_url": "…/errors/amend_widen.md",
    "fix": "an amendment may only narrow (cap and mandate)"
  }
}

See all error codes.