Catch and retry on other HTTP errors (500, 502, etc.)