Could you just use `res.redirect(301, ...)` instead?