cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Did 404 change to 409 in v2?

Did 404 change to 409 in v2?

philipkd
Collaborator | Level 8
Go to solution

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

Greg-DB
Dropbox Staff
Go to solution
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!

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution
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!
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?