app.get('/automated-error-handling', function(req, res) {
try {
Post.find(3);
return res.json({success: true})
} catch(e) {
logger.error(e);
return res.status(500).json({error: 'Something went wrong'});
}
});