/** * decide if the http status should break the loop. * * In some cases (e.g. a 404 error) the requested resource isn't there * and won't be there. Asking once or asking 5 million times won't change * that response. In those instances, break the loop (having logged the error) * and move on. */ protected function shouldBreak(\CleverError $e) { return in_array($e->getHttpStatus(), $this->breakStatuses); }