Checking the HTTP status code to determine when to retry the collection fetch