Adding a few JSON-API error handling tools.