code: function getCouchbaseError(error) {
  	if (!error) {
  		return;
  	}
  
  	for (const [key, value] of Object.entries(couchbase.errors)) {
  		if (value === error.code) {
  			error.code = key;
  			break;
  		}
  	}
  
  	return error;
  }
docs: Replace the Couchbase error.code number with its value
  Eg. {code: 16} -> {code: networkError}
  See all available values here: https://github.com/couchbase/couchnode/blob/master/lib/errors.js
  
  @param {CouchbaseError} error The error
  @returns {CouchbaseError} The transformed CouchbaseError