function errorFourZeroFourMiddleware (req, res, next) {
  const error = new Error('WeVote Route Does Not Exist')
  error.status = 404

  return next(error)
}
/**
 * 404 Error Middlware
 *
 * @export
 * @param {Object} req the http request object
 * @param {Object} res the http response object
 * @param {Function} next the next middleware function
 *
 * @returns {Object} the next middleware function
 */
404 Error Middlware
@export
@param {Object} req the http request object
@param {Object} res the http response object
@param {Function} next the next middleware function

@returns {Object} the next middleware function
404 Error Middlware @export @param { Object } req the http request object @param { Object } res the http response object @param { Function } next the next middleware function @returns { Object } the next middleware function
function errorFourZeroFourMiddleware (req, res, next) {
  const error = new Error('WeVote Route Does Not Exist')
  error.status = 404
  return next(error)
}
function errorFourZeroFourMiddleware ( req , res , next ) { const error = new Error ( 'WeVote Route Does Not Exist' ) error . status = 404 return next ( error ) }
404 Error Middlware
 @export
 @param {Object} req the http request object
 @param {Object} res the http response object
 @param {Function} next the next middleware function
404 Error Middlware @export @param { Object } req the http request object @param { Object } res the http response object @param { Function } next the next middleware function