private function considerStatusCodes(array $statusCodes): void
    {
        $this->requestCount += count($statusCodes);

        if ($this->autoShutdown) {
            foreach ($statusCodes as $statusCode) {
                if ($statusCode >= 500 && $statusCode < 600) {
                    $this->flagShutdown('Automatic shutdown following status code: ' . $statusCode);
                    break;
                }
            }
        }
    }
private function considerStatusCodes(array $statusCodes): void
    {
        $this->requestCount += count($statusCodes);

        if ($this->autoShutdown) {
            foreach ($statusCodes as $statusCode) {
                if ($statusCode >= 500 && $statusCode < 600) {
                    $this->flagShutdown('Automatic shutdown following status code: ' . $statusCode);
                    break;
                }
            }
        }
    }
private function considerStatusCodes ( array $ statusCodes ) : void { $ this -> requestCount += count ( $ statusCodes ) ; if ( $ this -> autoShutdown ) { foreach ( $ statusCodes as $ statusCode ) { if ( $ statusCode >= 500 && $ statusCode < 600 ) { $ this -> flagShutdown ( 'Automatic shutdown following status code: ' . $ statusCode ) ; break ; } } } }
Increments the request count and looks for application errors.

@param int[] $statusCodes The status codes of sent responses
Increments the request count and looks for application errors .