text: const notFound = async (req, res, next) => {
  	const error = new Error(`Not Found ${req.originalUrl}`);
  	res.status(404);
  	next(error);
  };
  
  const errorHandler = (err, req, res, next) => {
  	const statusCode = res.statusCode === 200 ? 500 : res.statusCode;
  	res.status(statusCode);
  
  	res.json({ success: false, message: err.message });
  };
  
  export { notFound, errorHandler };
  