Downloads the content at url.
raw bytes of the resource
resource to download
if the resource cannot be retrieved
if the resource does not exist