Deal with HTTP errors in the streaming download method

The implementation of streaming download proposed by Guzzle's
EntityBody class does not care about HTTP errors. When a resource is
not found on the server, we'd prefer considering an issue instead of
getting the HTML content of a 404 error page.