I am using nginx as a load balancer. It passes requests to upstream
servers using proxy_pass.
In the event that one of the upstream servers returns a 404 with an
error page, I would like to detect that situation and throw it out, and
return my own 404 error as directed by the nginx error_page directive.
Is this possible? And if so, how? Thanks!