router.post requieres response code example Example: express redirect app.get('/', (req, res) => { res.redirect('/foo/bar'); });