Announcements
Known issues updated. Learn more

Did 404 change to 409 in v2?

Helpful | Level 5

I'm migrating Nebulous Notes to v2, and I noticed that if I sync a file that doesn't exist on DB, I get a 409, instead of 404. Is this intentional? I use the status check in my logic to determine whether or not to upload a file, and want to make sure I set it to the right code.

1 Accepted solution

Accepted Solutions

Re: Did 404 change to 409 in v2?

Dropboxer
Yes, API v2 makes different use of status codes than API v1. For example, where API v1 may have used a 404 to indicate a non-existent file (among other issues), that would be a 409 error in API v2, with more specific error information available in the body.

You can find information on the design of API v2 on the blog:

https://blogs.dropbox.com/developers/2015/04/a-preview-of-the-new-dropbox-api-v2/
https://blogs.dropbox.com/developers/2015/04/how-many-http-status-codes-should-your-api-use/

You can find more information on error handling in the API v2 documentation:

https://www.dropbox.com/developers/documentation/http/documentation#error-handling

Hope this helps!
Reply
Loading...
1 Reply

Re: Did 404 change to 409 in v2?

Dropboxer
Yes, API v2 makes different use of status codes than API v1. For example, where API v1 may have used a 404 to indicate a non-existent file (among other issues), that would be a 409 error in API v2, with more specific error information available in the body.

You can find information on the design of API v2 on the blog:

https://blogs.dropbox.com/developers/2015/04/a-preview-of-the-new-dropbox-api-v2/
https://blogs.dropbox.com/developers/2015/04/how-many-http-status-codes-should-your-api-use/

You can find more information on error handling in the API v2 documentation:

https://www.dropbox.com/developers/documentation/http/documentation#error-handling

Hope this helps!
Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post