src/Response.php
protected function abort($code, $message = '', array $headers = [])
    {
        if ($code == 404) {
            throw new NotFoundHttpException($message);
        }

        throw new HttpException($code, $message, null, $headers);
    }
protected function abort($code, $message = '', array $headers = [])
    {
        if ($code == 404) {
            throw new NotFoundHttpException($message);
        }

        throw new HttpException($code, $message, null, $headers);
    }
Handle abort response.

@param  int  $code
@param  string  $message
@param  array  $headers

@return void

@throws \Symfony\Component\HttpKernel\Exception\HttpException
@throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException