Well, it could happen that the link you’re passing to the function is broken, so when you call download_url it throws an HTTPError with code 404.
I solved this, catching the error and trying with a link of another image. Look at the notebook I wrote for a variation I wrote of the is_it_a_bird? exercise of the first lesson: is_it_a_car? | Kaggle (function predict_search).