Added retries on failed http responses