title: Error handling when uploading file using multer with expressjs
body: <p>I am using <a href="https://github.com/expressjs/multer" rel="noreferrer">multer</a> to save the file on server developed through express &amp; nodejs. </p>
  
  <p>I am usign following code.</p>
  
  <pre><code>var express = require('express'),
      multer  = require('multer')
  
  var app = express()
  
  app.get('/', function(req, res){
    res.send('hello world');
  });
  
  app.post('/upload',[ multer({ dest: './uploads/'}), function(req, res){
  
      res.status(204).end()
  }]);
  
  app.listen(3000);
  </code></pre>
  
  <p>Multer saves the file for me in the specified destination folder. </p>
  
  <p><strong>All this is working fine but I have following questions:</strong></p>
  
  <ol>
  <li>If the file saving fails for various reasons, it looks like my route will always return status 204.</li>
  <li>I am not sure if status 204 is retured after file is saved or while the file is getting saved asynchronously, status 204 is returned.</li>
  </ol>