Adding retry for 502 and 503 bad gateway error
This PR is to make our service ITs robust. We have observed lot of transient server errors like service unavailable and bad gw . We have added retries in those cases. The functionality doesn't change. The retries in case of transient errors and exceptions make it more resilient.
Edited by Harshika Dhoot