src/page/error/ErrorPage.php
public function html(WebException $exception) {
    $message = $exception->getMessage();
    $statusCode = $exception->getStatusCode();
    $details = $exception->getDetails() === null ? "" : $exception->getDetails();
    return "
      <!DOCTYPE html>
      <html>
        <head><title>$message</title></head>
        <body>
          <h1>HTTP $statusCode: $message</h1>
          <p>$details</p>
        </body>
      </html>
    ";
  }
public function html(WebException $exception) {
    $message = $exception->getMessage();
    $statusCode = $exception->getStatusCode();
    $details = $exception->getDetails() === null ? "" : $exception->getDetails();
    return "
      <!DOCTYPE html>
      <html>
        <head><title>$message</title></head>
        <body>
          <h1>HTTP $statusCode: $message</h1>
          <p>$details</p>
        </body>
      </html>
    ";
  }
public function html ( WebException $ exception ) { $ message = $ exception -> getMessage ( ) ; $ statusCode = $ exception -> getStatusCode ( ) ; $ details = $ exception -> getDetails ( ) === null ? "" : $ exception -> getDetails ( ) ; return "
      <!DOCTYPE html>
      <html>
        <head><title>$message</title></head>
        <body>
          <h1>HTTP $statusCode: $message</h1>
          <p>$details</p>
        </body>
      </html>
    " ; }
Returns a html view for the thrown exception

@param WebException $exception the exception thrown and cause for this page to be shown
@return string html representation of the given exception
Returns a html view for the thrown exception