protected function handleNotFound($request, $response) { $response->writeHead(404, ['Content-Type' => 'text/plain']); $response->end("We are sorry to inform you that the requested resource does not exist."); }