getCountryCodes () {
    return new Promise((resolve, reject) => {
      if (countries) {
        resolve(countries);
      } else {
        reject(new Error('Error retrieving country codes'));
      }
    });
  }
Gets the cached country code list
@returns {Promise} Promise A promise object that signals the completion
                           or rejection of the request.