This ticket is about adding JSON error messages, like other platforms instead of using the text based mechanism now.
I presume this would kick in a v5 bump, or land in v5 because the current API expectation is that text errors are returned, either that or we add a way for users to specify they want JSON in every request for v4, or a switch in configuration.