Check if a number is a redirect HTTP status code
$ npm install --save is-redirect
var isRedirect = require('is-redirect'); isRedirect(302); //=> true isRedirect(200); //=> false
MIT © Sindre Sorhus