src/Context/ApiContext.php
protected function getResponseCodeGroupRange($group) {
        switch ($group) {
            case 'informational':
                $min = 100;
                $max = 199;
                break;
            case 'success':
                $min = 200;
                $max = 299;
                break;
            case 'redirection':
                $min = 300;
                $max = 399;
                break;
            case 'client error':
                $min = 400;
                $max = 499;
                break;
            case 'server error':
                $min = 500;
                $max = 599;
                break;
            default:
                throw new InvalidArgumentException(sprintf('Invalid response code group: %s', $group));
        }

        return [
            'min' => $min,
            'max' => $max,
        ];
    }
protected function getResponseCodeGroupRange($group) {
        switch ($group) {
            case 'informational':
                $min = 100;
                $max = 199;
                break;
            case 'success':
                $min = 200;
                $max = 299;
                break;
            case 'redirection':
                $min = 300;
                $max = 399;
                break;
            case 'client error':
                $min = 400;
                $max = 499;
                break;
            case 'server error':
                $min = 500;
                $max = 599;
                break;
            default:
                throw new InvalidArgumentException(sprintf('Invalid response code group: %s', $group));
        }

        return [
            'min' => $min,
            'max' => $max,
        ];
    }
protected function getResponseCodeGroupRange ( $ group ) { switch ( $ group ) { case 'informational' : $ min = 100 ; $ max = 199 ; break ; case 'success' : $ min = 200 ; $ max = 299 ; break ; case 'redirection' : $ min = 300 ; $ max = 399 ; break ; case 'client error' : $ min = 400 ; $ max = 499 ; break ; case 'server error' : $ min = 500 ; $ max = 599 ; break ; default : throw new InvalidArgumentException ( sprintf ( 'Invalid response code group: %s' , $ group ) ) ; } return [ 'min' => $ min , 'max' => $ max , ] ; }
Get the min and max values for a response body group

@param string $group The name of the group
@throws InvalidArgumentException
@return array An array with two keys, min and max, which represents the min and max values
for $group
Get the min and max values for a response body group