I see now that the actual code is returned in the $config.  So we get:

```
        // detect http errors in resource fetch call
        if(is_array($config) && array_key_exists('type', $config) && $config['type'] === 'CHttpException') {
            throw new \CHttpException($config['code'], 'Error fetching resource \''.$name.'\'. '.$config['type'].": ".$config['message'], 1);
        }
```