title: Why I'm getting the error :ReferenceError: status is not defined when using body-phraser?
body: <p>I'm new to node js and when using body-phraser I'm getting the error: <em><code>ReferenceError: status is not defined</code></em>. The code is shown below.<br>
  when a json is posted to the <em>localhost:3000/</em> products the following error seems to be rising but i can't figure out why this happens. Does the reference error occur due to an bug in my code:<br>
  The error I get is:</p>
  
  <pre><code>ReferenceError: status is not defined
      at app.use (/home/marper96/Desktop/node/node-rest-shop/app.js:22:5)
      at Layer.handle_error (/home/marper96/Desktop/node/node-rest-shop/node_modules/express/lib/router/layer.js:71:5)
      at trim_prefix (/home/marper96/Desktop/node/node-rest-shop/node_modules/express/lib/router/index.js:315:13)
      at /home/marper96/Desktop/node/node-rest-shop/node_modules/express/lib/router/index.js:284:7
      at Function.process_params (/home/marper96/Desktop/node/node-rest-shop/node_modules/express/lib/router/index.js:335:12)
      at next (/home/marper96/Desktop/node/node-rest-shop/node_modules/express/lib/router/index.js:275:10)
      at Layer.handle_error (/home/marper96/Desktop/node/node-rest-shop/node_modules/express/lib/router/layer.js:67:12)
      at trim_prefix (/home/marper96/Desktop/node/node-rest-shop/node_modules/express/lib/router/index.js:315:13)
      at /home/marper96/Desktop/node/node-rest-shop/node_modules/express/lib/router/index.js:284:7
      at Function.process_params (/home/marper96/Desktop/node/node-rest-shop/node_modules/express/lib/router/index.js:335:12)
  </code></pre>
  
  <p>The code I'm using:</p>
  
  <pre><code>router.post('/',(req,res,next) =&gt;{
      const product ={
          name :req.body.name,
          price :req.body.price
      };
      res.status(201).json({
          messsage:'Handelling post requests to /products',
          createdproduct:product
      });
  });
  
  module.exports =router;
  </code></pre>