better exception reporting from JSON web APIs