Code Room
Code reviewMediumcr-g143
Subject Inconsistent errorsLevel Mid–Senior~20 minCommon in Databases & SQL · Networking & APIs interviewsIndustries Software development

Question

Review this TypeScript handler that proxies an upstream call.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.

Talk through your review
Code to reviewts
router.post('/send-sms', async (req, res) => {  try {    const result = await smsProvider.send(req.body.to, req.body.text);    res.json({ ok: true, sid: result.sid });  } catch (err) {    res.json({ ok: false, error: String(err) });  }});
Run or narrate your approach, then ask the coach.