debug mode is off, the message that is included with JSON error responses is a hard-coded message in English. Would it be possible to make that string translatable?
As well as supporting other languages, you could then potentially override that message to display something a little more appropriate for non-developers (e.g. “An unexpected error occurred. An administrator has been notified.”).
Happy to make a pull-request for this admittedly incredibly minor suggestion!