Expose backend errors in JSON