Express error handlers for JSON APIs