http error handling

when server http response code is not 200, sleeps with increasing
duration (up to limit=5 times)