code: public function error(Request $request)
      {
          $this->response->setCode(404);
          printf("<h2>%s</h2>", HttpStatus::getStatus(404));
          printf("Requested document %s on %s could not be found!", $request->getAction(), $request->getController());
      }
docs: Error processing method
  
  @param Request $request
  The request