Net::HTTPServerError
Response class for Bad Gateway responses (status code 502).
Bad Gateway
The server was acting as a gateway or proxy and received an invalid response from the upstream server.
References:
Mozilla.
RFC 9110.
Wikipedia.