This has been a continual source of pain in some other pe services. JSON APIs should server json error responses.
I thought it already did, guess I was mistaken.
Alex Dreyer Do we want to construct an error hash with 'msg', 'kind', and 'details', or just call 'generate' on the error message?