express response type code example
Example 1: express redirect
res.redirect('/foo/bar')
res.redirect('http://example.com')
res.redirect(301, 'http://example.com')
res.redirect('../login')
Example 2: express set response code
res.status(400);
res.send('None shall pass');
Example 3: node js http request express
npm install request@2.81.0