I am using the OKHTTPUtils2 library successfully in my web services consuming app. It works fine except I have a problem when a service fails in that I can't examine the response returned by the service which indicates the reason for the failure.
For example our login/auth service might fail because the user has entered an invalid password or because they've made too many attempts, etc, and I need to explain what went wrong using different language depending on the reason for the failure. The problem seems to be that when Job.Success is set to False, Job.GetString is invalid. Is there a way around this?
For example our login/auth service might fail because the user has entered an invalid password or because they've made too many attempts, etc, and I need to explain what went wrong using different language depending on the reason for the failure. The problem seems to be that when Job.Success is set to False, Job.GetString is invalid. Is there a way around this?