text: String.prototype.format = function (args) {
    var str = this;
    return str.replace(String.prototype.format.regex, function(item) {
      var intVal = parseInt(item.substring(1, item.length - 1));
      var replace;
      if (intVal >= 0) {
        replace = args[intVal];
      } else if (intVal === -1) {
        replace = "{";
      } else if (intVal === -2) {
        replace = "}";
      } else {
        replace = "";
      }
      return replace;
    });
  };
  String.prototype.format.regex = new RegExp("{-?[0-9]+}", "g");
  
  const MESSAGES = {
    ERRORS: {
      DEFAULT: 'There was an error.',
      AUTHORIZATION: 'Please provide an Authorization header to identify yourself (can be whatever you want)',
      TYPE_WITH_ID_NOT_FOUND: '{0} with id {1} not found'
    }
  };
  
  module.exports = {
    MESSAGES
  };