Bad Gateway - 502 error

The server was acting as a gateway or proxy and received an invalid response from the upstream server.