BLK-160 Refactors RESTPolling block to allow blocks to customize the determining and handling of failed responses