Add 4xx error page redirection to nginx config