$request->getPath(), )); return new HttpResponseNotFound($t->render($c), 'text/html'); } function server_error($request) { $t = loader::get_template('500.php'); $c = new RequestContext($request); return new HttpResponseServerError($t->render($c), 'text/html'); }