# ExitCode

> Represents the exit codes that scaffold services return to the console commands.

[API reference](/docs/api/index.md) › [Scaffold](/docs/extensions/scaffold/reference/index.md) › [Console](/docs/extensions/scaffold/reference/console/index.md) › ExitCode

| enum | `PHPForge\Scaffold\Console\ExitCode` |
| --- | --- |
| Backed by | `int` |
| Source | [`src/Console/ExitCode.php`](https://github.com/php-forge/scaffold/blob/main/src/Console/ExitCode.php#L10) |

Represents the exit codes that scaffold services return to the console commands.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-Error"></span>`Error` | `1` | Reports a failure such as an untracked file, an unsafe lock entry, a missing stub, a read error, or a `reapply` filter that matches no tracked file. |
| <span id="case-Ok"></span>`Ok` | `0` | Reports success, including previews and runs that change nothing. |