Make curl error on 404

Normally a webserver will return an html document when a 404 is
encountered. By default curl will download this html and return 0. This
pull request causes curl to return 22 instead, thus making the
staging::file resource fail on 404.