set retry limit when HTTPError