Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!

Forum Discussion

Michal5's avatar
Michal5
Explorer | Level 4
6 years ago
Solved

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
    6 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).

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers808 PostsLatest Activity: 2 days ago
220 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!