amend_state: The stream cannot be amended now

The stream is revoked or closed, so there is nothing left to amend. The same code answers an amendment that names neither capUnits nor mandate, and a mandate amendment on a stream opened before mandates existed (it carries no mandate to amend). Nothing changed.

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_state",
    "message": "…",
    "param": null,
    "doc_url": "…/errors/amend_state.md",
    "fix": "the stream cannot be amended in its current state"
  }
}

See all error codes.