Return status code 500 if the proxy script fails