code: function serverError(err, res) {
    // error is required to be logged
    log('error', err.message, { stack: err.stack });
  
    const message = err.message || 'Server Error', // completely hide these messages from outside
      code = 500;
  
    sendDefaultResponseForCode(code, message, res);
  }
docs: All server errors should look like this.
  
  In general, 500s represent a _developer mistake_.  We should try to replace them with more descriptive errors.
  @param {Error} err
  @param {object} res