/**
  * Build fake page with error based on fake controller initiation
  */
 protected function buildFakePage()
 {
     // initialize fake controller to display page with exception
     $fakeController = new Controller();
     // check if used no layout template
     if (defined('env_no_layout') && env_no_layout === true) {
         $fakeController->layout = null;
     }
     // add global title tag value
     $fakeController->setGlobalVar('title', App::$Translate->get('Default', $this->title));
     // build error text
     $rawResponse = 'error';
     try {
         $rawResponse = App::$View->render('native/errors/' . $this->tpl, ['msg' => $this->text]);
         if (Str::likeEmpty($rawResponse)) {
             $rawResponse = $this->text;
         }
     } catch (SyntaxException $e) {
         $rawResponse = $this->text;
     }
     // set controller body response
     $fakeController->setOutput($rawResponse);
     // set status code for header
     App::$Response->setStatusCode((int) $this->status);
     // return compiled html output
     return $fakeController->buildOutput();
 }