Use the common error type for CAPI