I created revalidate endpoint and we are facing one issue with res.revalidate.
I am using dynamic route [[…page]].tsx and CMS behind it.
Is there a way to detect if res.revalidate{path) responded with 404?
Currently we are getting 200 status.
Here is the documentation I followed: