Added on-the-spot retries in the http status code error handling.