Rest API - HTTP Status Codes
Identify the error in this Express.js code that attempts to send a 301 redirect:
app.get('/old', (req, res) => {
res.status(301);
res.send('Redirecting');
res.set('Location', '/new');
});