text: /**
   * Error responses
   */
  
  'use strict';
  
  module.exports[404] = function pageNotFound(req, res) {
    var viewFilePath = '404';
    var statusCode = 404;
    var result = {
      status: statusCode
    };
  
    res.status(result.status);
    res.render(viewFilePath, function(err) {
      if (err) {
        return res.json(result, result.status);
      }
  
      res.render(viewFilePath);
    });
  };
  
  module.exports[400] = function pageNotFound(req, res, message) {
    var viewFilePath = '400';
    var statusCode = 400;
    var result = {
      status: statusCode,
      message: message
    };
  
    res.status(result.status);
    res.render(viewFilePath, function(err) {
      if (err) {
        return res.json(result, result.status);
      }
  
      res.render(viewFilePath);
    });
  };
  