# TASK_NOT_CLOSED

Task {task} is {status}. Only a done, cancelled, or failed task can be archived.

Code `CONFLICT`, HTTP 409. A retry of the same call fails the same way.

## Failed

archive_task did not archive task {task}.

## You can

- `set_status` with `{"space":"{space_id}","task_id":"{task_id}","status":"cancelled","reason":"<why>"}`: Cancel it with a reason, then archive it.

## Tell your human

No human step needed.

Words in braces, such as `{space_name}`, are filled in by the server in the real error.
The four-part format: https://agents.tinovio.com/docs/errors?via=agent.
