code: function throwError(res, errorCode) {
      const error = decodeError(errorCode);
      res.writeHead(error.status, { 'Content-Type': 'application/json' });
      res.write(JSON.stringify(error));
      res.end();
  }
docs: /*------------------------------------------------------------------------------------ /*------------------------------------------------------------------------------------