docs: function _sanitizeErr(err, req, res, errmsg) {
      if (err.statusCode === 404 && res && res.headers['content-type'] &&
          res.headers['content-type'].split(';')[0] !== 'application/json')
      {
          err.message = errmsg || 'not found';
      }
      return err;
  }