Performance: res.status for status codes
MEDIUM IMPACT
This affects server response time and perceived page load speed by setting HTTP status codes efficiently.
res.status(404).send('Not Found');
res.send('Not Found'); // without setting status code explicitly| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| res.send() without status | 0 (server-side) | 0 | 0 | [X] Bad |
| res.status(code).send() | 0 (server-side) | 0 | 0 | [OK] Good |