src/BaseConnector.php
protected function checkValidResponse( $statusCode = null ) {
        $valid_status_codes = $this->getValidStatusCodes();
        foreach ( $valid_status_codes as $valid_status_code ) {
            if ( $statusCode === intval( $valid_status_code ) ) {
                return true;
            }
        }

        return false;
    }
protected function checkValidResponse( $statusCode = null ) {
        $valid_status_codes = $this->getValidStatusCodes();
        foreach ( $valid_status_codes as $valid_status_code ) {
            if ( $statusCode === intval( $valid_status_code ) ) {
                return true;
            }
        }

        return false;
    }
@param int $statusCode

@return bool