# ServerExitCode

> Represents process exit codes for server lifecycle outcomes.

[API reference](/docs/api/index.md) › [PSR bridge](/docs/extensions/psr-bridge/reference/index.md) › [http](/docs/extensions/psr-bridge/reference/http/index.md) › ServerExitCode

| enum | `yii2\extensions\psrbridge\http\ServerExitCode` |
| --- | --- |
| Backed by | `int` |
| Source | [`src/http/ServerExitCode.php`](https://github.com/yii2-extensions/psr-bridge/blob/main/src/http/ServerExitCode.php#L10) |

Represents process exit codes for server lifecycle outcomes.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-OK"></span>`OK` | `0` | Indicates successful execution. |
| <span id="case-REQUEST_LIMIT"></span>`REQUEST_LIMIT` | `1` | Indicates the configured request limit was reached. |
| <span id="case-SHUTDOWN"></span>`SHUTDOWN` | `2` | Indicates a graceful shutdown was requested. |