protected function notFound(ServerRequestInterface $request, ResponseInterface $response)
    {
        $notFound = $response
            ->withProtocolVersion($request->getProtocolVersion())
            ->withStatus(404);
        
        $notFound->getBody()->write('Not Found');

        return $notFound;
    }