Retry http request on error