src/Valkyrja/Valkyrja.php
public function abort(
        int $statusCode = StatusCode::NOT_FOUND,
        string $message = '',
        array $headers = [],
        int $code = 0,
        Response $response = null
    ): void {
        throw new HttpException($statusCode, $message, null, $headers, $code, $response);
    }
public function abort(
        int $statusCode = StatusCode::NOT_FOUND,
        string $message = '',
        array $headers = [],
        int $code = 0,
        Response $response = null
    ): void {
        throw new HttpException($statusCode, $message, null, $headers, $code, $response);
    }
Abort the application due to error.

@param int      $statusCode The status code to use
@param string   $message    [optional] The Exception message to throw
@param array    $headers    [optional] The headers to send
@param int      $code       [optional] The Exception code
@param Response $response   [optional] The Response to send

@throws \Valkyrja\Http\Exceptions\HttpException

@return void