function assertInt(request, name, value) {
  // Number.parseXxx computes the 1st member of an array if one is provided
  if (Array.isArray(value) || Number.isNaN(Number.parseInt(value))) {
    throw kerror.get("invalid_type", name, "integer");
  }
}
Throws with a standardized error message if "value"
is not an integer

@param {Request} request
@param {string} name of the tested parameter
@param {*} value of the tested parameter
@throws