in reply to HTTP 200 Status

"Bad Gateway" means that the HTTP server forwards something to another server or a handler (like a proxy does), and that forwarding fails somehow.

So look at your server's error log file to find out what went wrong, and fix it.