Hi. Currently, the trino-client-ruby library only performs retries for 503 HTTP status codes.
However, according to the trino client protocol, it should also retry for 502 and 504.
If the client request returns an HTTP 502, 503, or 504, that means there was an intermittent problem processing request and the client should try again in 50-100 ms. Trino does not generate those codes by itself, but those can be generated by load balancers in front of Trino.
We would appreciate a code fix for this.