Rest API - HTTP Status Codes
Identify the error in this Express code snippet:
app.get('/data', (req, res) => {
res.status(200);
res.json({ data: 'info' });
});app.get('/data', (req, res) => {
res.status(200);
res.json({ data: 'info' });
});15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions