Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure exit code is within valid range
The exitHandler function now properly validates the exit code provided in the query string. It checks for conversion errors and ensures the code is within the valid range of 0 to 125. If the validation fails, it responds with an HTTP 400 Bad Request error. This prevents potential misuse of the exit endpoint by restricting the exit codes to expected values.
- Loading branch information