/**
  * Displays the error page. If you set $display_errors to false
  * only a small error message will be displayed.
  *
  * @param \Exception $exception Exception to display
  * @return void
  */
 public function render_exception_page($exception)
 {
     if (ob_get_length() > 0) {
         ob_end_clean();
     }
     $status = '503 Service Temporarily Unavailable';
     if ($exception instanceof \PHPixie\Exception\PageNotFound) {
         $status = '404 Not Found';
     }
     header($_SERVER["SERVER_PROTOCOL"] . ' ' . $status);
     header("Status: {$status}");
     if (!$this->display_errors) {
         echo $status;
     } else {
         $view = $this->pixie->view('debug');
         $view->exception = $exception;
         $view->log = $this->logged;
         echo $view->render();
     }
 }