docs: function(){
        _.extend(sails.config.errorhandler, {});
        // explore config
        var defaultConfig = {
          messages: messages,
          defaults: defaults,
          modelErrors: /^(unauthorized|notFound|invalid|conflict|forbidden)(.*)$/,
          soloErrors: /^(badRequest|missingArguments|notAcceptable|notImplemented|serviceUnavailable|unsupportedMediaType)$/,
          serverError: /^(dataBaseError|communicationUnexpectedStatus|communicationError|serverError)$/
        };
  
        _.keys(defaultConfig).forEach(function (k) {
          if (!sails.config.errorhandler[k]) {
            sails.config.errorhandler[k] = defaultConfig[k];
          }
        });
        // overwrite from config
        _.extend(messages, sails.config.errorhandler.messages);
        _.extend(defaults, sails.config.errorhandler.defaults);
        // add config
        _.extend(sails.config.errorhandler.messages, messages);
        _.extend(sails.config.errorhandler.defaults, defaults);
      }