I think there should be a dedicated optional field for "error code", i.e. error's unique identifier within given application. Client could then implement it's own logic how to react in certain error situations. Without error codes, it can only parse error messages, which doesn't seem very optimal to me.
I think there should be a dedicated optional field for "error code", i.e. error's unique identifier within given application. Client could then implement it's own logic how to react in certain error situations. Without error codes, it can only parse error messages, which doesn't seem very optimal to me.