task_closed: The task or milestone is already decided

The milestone is already rejected, expired, accepted or paid, or the task is closed. Nothing is recorded.

What to do

On the wire

HTTP 409, error type state_error.

With Dynamo-Error-Detail: 1 (1.8.0 task routes):

{
  "error": "state",
  "reason": "task_closed",
  "detail": "…",
  "errorDetail": {
    "type": "state_error",
    "code": "task_closed",
    "message": "…",
    "param": "task",
    "doc_url": "…/errors/task_closed.md",
    "fix": "the task or milestone reached a terminal state; nothing changes"
  }
}

See the Task Allowance and all error codes.