Java SDK http response status

Highlighted
Occasional Contributor

Java SDK http response status

I got a request to log the http response status codes (200, 403, 500 etc...).

How can I get them via the java SDK.

Is there a way to read them from the http response?

1 REPLY 1
Highlighted
Occasional Contributor

Re: Java SDK http response status

I found the BoxAPIException that has a getResponseCode() method.

So half of my problem is solved. For now I return 200 if there are no errors.