function setStatusCode(res, code) {
  // Pseudo API
  if (typeof res.setStatusCode === "function") {
    res.setStatusCode(code);

    return;
  }

  // Node.js API

  res.statusCode = code;
}
@template {ServerResponse & ExpectedServerResponse} Response
@param {Response} res res
@param {number} code code
@returns {void}