protected function getNotFoundResponse(NotFound $exception): ResponseInterface
    {
        return (new Response())
            ->withStatusCode(404)
            ->withBody([
                'type' => '',
                'title' => 'Not found.',
                'path' => $exception
                    ->getRequest()
                    ->getUri()
                    ->toRelative(),
            ]);
    }