public static function getMessageFromCode($code)
    {
        if (!array_key_exists($code, self::$responseCodes)) {
            throw new \Exception('The header code '.$code.' is not valid.');
        }

        return self::$responseCodes[$code];
    }
public static function getMessageFromCode($code)
    {
        if (!array_key_exists($code, self::$responseCodes)) {
            throw new \Exception('The header code '.$code.' is not valid.');
        }

        return self::$responseCodes[$code];
    }
public static function getMessageFromCode ( $ code ) { if ( ! array_key_exists ( $ code , self :: $ responseCodes ) ) { throw new \ Exception ( 'The header code ' . $ code . ' is not valid.' ) ; } return self :: $ responseCodes [ $ code ] ; }
Get response message from code.

@param (int) $code

@since 3.0.0

@return string
Get response message from code .