Hi Sanguine,
This is a common requirement, But I was thinking why should you be accessing the COCO here. Can you not directly access like me->typed_context->btadminh->collection_wrapper->get_status() if necessary bindings are done. But this will return values like 'Released', 'In progress; etc...Not like 'E0001', 'E0002'...
Thanks,
Faisal