title: Check if request is in state of re-direct
body: <p>There is a way with express check if the request is in status redirect (302) ,I use the( req,res ) I use the following ?</p>
  
  <pre><code>var http = require('http'),
  httpProxy = require('http-proxy');
  
  var proxy = httpProxy.createProxyServer({});   
  
  proxy.on('proxyReq', function(proxyReq, req, res, options) {
      proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');
  });
  
  proxy.on('proxyRes', function (proxyRes, req, res) {
      console.log('RAW Response from the target', JSON.stringify(proxyRes.headers, true, 2));
  });
  </code></pre>
  
  <p><a href="https://github.com/nodejitsu/node-http-proxy" rel="nofollow">https://github.com/nodejitsu/node-http-proxy</a></p>