retry requests in the 500 range or when an HTTPoison.HTTPError is raised