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
- Lower the cap or narrow the mandate. To give more room, open a new stream or budget.
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.