Dropbox SDK: added more sophisticated error handling on bad HTTP response code