src/Base/ExceptionHandler.php
private function getViewFileForException($exception)
    {
        $basePath = \Reaction::$app->getAlias('@views/error');
        $tplName = 'general.php';
        if ($exception instanceof HttpExceptionInterface) {
            $code = $exception->statusCode;
        } else {
            $code = $exception->getCode();
        }
        if (file_exists($basePath . '/' . $code . '.php')) {
            $tplName = $code . '.php';
        }
        return $basePath . '/' . $tplName;
    }
private function getViewFileForException($exception)
    {
        $basePath = \Reaction::$app->getAlias('@views/error');
        $tplName = 'general.php';
        if ($exception instanceof HttpExceptionInterface) {
            $code = $exception->statusCode;
        } else {
            $code = $exception->getCode();
        }
        if (file_exists($basePath . '/' . $code . '.php')) {
            $tplName = $code . '.php';
        }
        return $basePath . '/' . $tplName;
    }
Get view file for exception depending on its code|httpStatusCode
@param \Throwable $exception
@return string