We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Michal5's avatar
Michal5
Explorer | Level 4
5 years ago

Status codes: Dropbox sdk java

Hi Dropbox team, Is there a possibility to acces status code in dropbox sdk java ? for example Check User "If you receive an HTTP 200 response with the supplied query" how can I access status cod...
  • Greg-DB's avatar
    5 years ago

    The official Dropbox SDKs don't return the actual status codes directly. They instead translate them to different exception types that you can catch natively.

    For example, in the Java SDK, the DbxUserCheckRequests.user method will return an EchoResult if the call is successful (i.e., a 200 status code), or raise an exception, such as DbxApiException or DbxException, if the call failed (e.g., a 4xx or 5xx status code).