public function respond(Response $response) { $page = new \ErrorPage($this->exception); $page->renderPage(); $response->flush(); }