<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Status codes: Dropbox sdk java in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Status-codes-Dropbox-sdk-java/m-p/391861#M955</link>
    <description>&lt;P&gt;The official&amp;nbsp;Dropbox SDKs don't return the actual status codes directly. They instead translate them to different exception types that you can catch natively.&lt;/P&gt;
&lt;P&gt;For example, in the Java SDK, &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/check/DbxUserCheckRequests.html#user--" target="_self"&gt;the&amp;nbsp;DbxUserCheckRequests.user method&lt;/A&gt; will return an&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/check/EchoResult.html" target="_self"&gt;EchoResult&lt;/A&gt; if the call is successful (i.e., a 200 status code), or raise an exception, such as&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/DbxApiException.html" target="_self"&gt;DbxApiException&lt;/A&gt; or&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/DbxException.html" target="_self"&gt;DbxException&lt;/A&gt;, if the call failed (e.g., a 4xx or 5xx status code).&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2020 20:59:33 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-01-23T20:59:33Z</dc:date>
    <item>
      <title>Status codes: Dropbox sdk java</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Status-codes-Dropbox-sdk-java/m-p/391856#M954</link>
      <description>&lt;P&gt;Hi Dropbox team,&lt;/P&gt;
&lt;P&gt;Is there a possibility to acces status code in dropbox sdk java ? for example&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#check-user" target="_self"&gt;Check User&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"If you receive an HTTP 200 response with the supplied query" how can I access status code ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your answer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 21:38:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Status-codes-Dropbox-sdk-java/m-p/391856#M954</guid>
      <dc:creator>Michal5</dc:creator>
      <dc:date>2020-01-23T21:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Status codes: Dropbox sdk java</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Status-codes-Dropbox-sdk-java/m-p/391861#M955</link>
      <description>&lt;P&gt;The official&amp;nbsp;Dropbox SDKs don't return the actual status codes directly. They instead translate them to different exception types that you can catch natively.&lt;/P&gt;
&lt;P&gt;For example, in the Java SDK, &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/check/DbxUserCheckRequests.html#user--" target="_self"&gt;the&amp;nbsp;DbxUserCheckRequests.user method&lt;/A&gt; will return an&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/check/EchoResult.html" target="_self"&gt;EchoResult&lt;/A&gt; if the call is successful (i.e., a 200 status code), or raise an exception, such as&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/DbxApiException.html" target="_self"&gt;DbxApiException&lt;/A&gt; or&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/DbxException.html" target="_self"&gt;DbxException&lt;/A&gt;, if the call failed (e.g., a 4xx or 5xx status code).&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 20:59:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Status-codes-Dropbox-sdk-java/m-p/391861#M955</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-23T20:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Status codes: Dropbox sdk java</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Status-codes-Dropbox-sdk-java/m-p/391863#M956</link>
      <description>&lt;P&gt;So there is no way to access status codes directly ? I know about exception. I am catching exceptions but it is not enough. Anyway thank you for your answer.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 21:07:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Status-codes-Dropbox-sdk-java/m-p/391863#M956</guid>
      <dc:creator>Michal5</dc:creator>
      <dc:date>2020-01-23T21:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Status codes: Dropbox sdk java</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Status-codes-Dropbox-sdk-java/m-p/391864#M957</link>
      <description>&lt;P&gt;That's correct, the Java SDK doesn't directly expose the status code itself. In the case of that method, if it returns a&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/check/EchoResult.html" target="_self" rel="nofollow noopener noreferrer"&gt;EchoResult&lt;/A&gt;&amp;nbsp;that means that the API returned a 200 status, and the different exceptions correspond to the different kinds of failures. Can you elaborate on what you need that that doesn't cover? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 21:12:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Status-codes-Dropbox-sdk-java/m-p/391864#M957</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-23T21:12:34Z</dc:date>
    </item>
  </channel>
</rss>

