HTTP 502 Bad Gateway

The server, acting as a gateway or proxy, received an invalid response from the upstream server. The intermediate server (nginx, load balancer, API gateway) failed to obtain a valid response from the origin server. Common causes: application server is down, connection timeout between the proxy and backend, malformed upstream response, or internal network issue. This generally indicates an infrastructure problem, not an application logic error. Monitor upstream health checks and set appropriate connect/read timeouts on the proxy layer.

Part of GalacticaSuite Cosmos — open the API client to test requests.