In the ensureFileContent() function, check if there is a sensible mapping that could be applied from RCN_FILE_OP_* error codes to RCN_ERR_* error codes as there are some similarities.
For example, RCN_FILE_OP_ALLOC_FAILURE could map to RCN_ERR_ALLOC_FAILURE.