# Exit codes

> What each dflow exit code means.

Web page: /docs/cli/exit-codes/

The exit code is how a script decides what to do next. The CLI does not retry. If you press Ctrl-C while a command is waiting, it exits 7 and leaves the operation running. Read it later with `dflow operations:inspect`.

| Code | Meaning |
| --- | --- |
| 0 | The command succeeded. Reading an application that is degraded is still success. The read worked. |
| 1 | Usage or validation. A flag, a name, or the saved project and environment is wrong. |
| 2 | The login is missing, the API rejected it, or this login may not run the command. |
| 3 | The name or id is not visible to this login. |
| 4 | The name already exists, or a hostname is already taken. |
| 5 | The API accepted the operation, and the operation then failed or was cancelled. |
| 6 | A precondition failed. Something else has to happen first, such as a cap, a missing cluster, or a name you still have to confirm. |
| 7 | The wait ended first. The operation is still running. Read `dflow operations:inspect`. |
| 10 | The API could not be reached. |
