Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTTP] Make it fail when a HTTP error status code is returned #41

Closed
alloy opened this issue Dec 19, 2014 · 0 comments
Closed

[HTTP] Make it fail when a HTTP error status code is returned #41

alloy opened this issue Dec 19, 2014 · 0 comments

Comments

@alloy
Copy link
Member

alloy commented Dec 19, 2014

E.g. this should fail

~/tmp » 
curl -O https://www.dropbox.com/developers/downloads/sdks/datastore/ios/dropbox-ios-sync-sdk-3.1.1.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   613    0   613    0     0    362      0 --:--:--  0:00:01 --:--:--   362
~/tmp » unzip dropbox-ios-sync-sdk-3.1.1.zip 
Archive:  dropbox-ios-sync-sdk-3.1.1.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of dropbox-ios-sync-sdk-3.1.1.zip or
        dropbox-ios-sync-sdk-3.1.1.zip.zip, and cannot find dropbox-ios-sync-sdk-3.1.1.zip.ZIP, period.
~/tmp » cat dropbox-ios-sync-sdk-3.1.1.zip 

<!DOCTYPE html>
<html>
<head><title>Dropbox - 404</title>
<link href="https://www.dropbox.com/static/css/error.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="/static/images/favicon.ico"/>
</head>
<body>
<div class="figure">
<img src="/static/images/psychobox.png" alt="Error:"/>
</div>
<div id="errorbox">
<h1>Error (404)</h1>We can't find the page you're looking for. Check out our <a href="https://www.dropbox.com/help">Help Center</a> and <a href="https://forums.dropbox.com">forums</a> for help, or head back to <a href="https://www.dropbox.com/home">home</a>.
</div>

</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant