master
if (err && (err.status || err.statusCode)) { res.status(err.status || err.statusCode); return res.json({ error: err.code || err.name, message: err.message || err.name