you should switch all your errors to our standard:  return res.jsonErr('XXX', 500);