$response =
$this->
renderStorefront( '@Storefront/storefront/page/content/index.html.twig',
['page' =>
$errorPage] );
} else { $errorTemplate =
$this->errorTemplateResolver->
resolve($exception,
$request);
if (!
$request->
isXmlHttpRequest()) { $header =
$this->headerPageletLoader->
load($request,
$context);
$footer =
$this->footerPageletLoader->
load($request,
$context);
$errorTemplate->
setHeader($header);
$errorTemplate->
setFooter($footer);
} $response =
$this->
renderStorefront($errorTemplate->
getTemplateName(),
['page' =>
$errorTemplate]);
} if ($exception instanceof HttpException
) { $response->
setStatusCode($exception->
getStatusCode());
} } catch (\Exception
$e) { // final Fallback
$response =
$this->
renderStorefront( '@Storefront/storefront/page/error/index.html.twig',
[