false request on my website like example.com/fsdfdsf is redirected to my custom error page. Since it’s already redirected to the custom error page I desire, it returns a status code of 200. My intention is to encounter the 404 error message both while redirecting to the custom error page I’ve created. Code written with one of the old versions of react, however I am not a developer so I don’t know what to do on codes.
I want to perform this operation in my nginx configuration file.