src/Framework/Http/Middleware/Router/RouterMiddleware.php
protected function getNotFoundResponse(NotFound $exception): ResponseInterface
    {
        return (new Response())
            ->withStatusCode(404)
            ->withBody([
                'type' => '',
                'title' => 'Not found.',
                'path' => $exception
                    ->getRequest()
                    ->getUri()
                    ->toRelative(),
            ]);
    }
protected function getNotFoundResponse(NotFound $exception): ResponseInterface
    {
        return (new Response())
            ->withStatusCode(404)
            ->withBody([
                'type' => '',
                'title' => 'Not found.',
                'path' => $exception
                    ->getRequest()
                    ->getUri()
                    ->toRelative(),
            ]);
    }
protected function getNotFoundResponse ( NotFound $ exception ) : ResponseInterface { return ( new Response ( ) ) -> withStatusCode ( 404 ) -> withBody ( [ 'type' => '' , 'title' => 'Not found.' , 'path' => $ exception -> getRequest ( ) -> getUri ( ) -> toRelative ( ) , ] ) ; }
Get response for NotFound exception.

@param NotFound $exception
@return ResponseInterface
Get response for NotFound exception .