Enhanced exception checking in RestCoreClient