HTTP 502 Bad Gateway indicates that a server acting as a gateway or proxy received an invalid response from an upstream server. It's a server-side error that occurs when one server cannot get a valid response from another server it needs to access to fulfill the request.