All 35 Bugs /
0/35 Fixed ✓
Node/ExpressEasy~8 min

Missing Return After res.status(400).json() Double-Send Crash

What's Broken (Symptom)

Validation block calls `res.status(400).json(...)` without `return`, so execution continues into DB save and throws ERR_HTTP_HEADERS_SENT.

Expected Behavior

  • • Add `return` before `res.status(400).json(...)` so invalid requests abort immediately.

Debugging Hints (0/2 used)

Try spotting the bug in the editor first. Need a nudge? Reveal Hint 1 anytime.

Root Cause Breakdown

Pass all 1 automated verification checks on the right to unlock the full Root Cause explanation.

Automated Bug Verification

1 Checks Ready
  • Stops immediately on 400 without calling saveTask or 201saveTask count stays 0 on invalid body.
bugfix.js
Live Sandboxed PreviewCtrl + Enter to verify
Console Output0 log(s)
No console output yet. Run Preview or Verify Bug Fix.