check URL for errors before attempting to download, for #207