authy-java icon indicating copy to clipboard operation
authy-java copied to clipboard

Error class is missing 'statusCode'

Open stephanos opened this issue 13 years ago • 2 comments

We're implementing the Java client into our app and feel that the Error object should have a getStatusCode() method.

The reason is that the 'message' might not be suitable for display in the UI as is and we don't have any way to distinguish server, client and user errors without the status code.

stephanos avatar Nov 20 '13 17:11 stephanos

Did you mean something like getStatus() in Resource class?

juancate avatar Nov 20 '13 17:11 juancate

Ah, I think you're right. I was so focused on 'User' and 'Error' that I didn't realize the 'Users' object stores the status code. Cool, thanks :)

stephanos avatar Nov 20 '13 18:11 stephanos