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

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

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

@param ServerRequestInterface $request
@param ResponseInterface      $response
@return ResponseInterface
Return Not Found response