Added HTTPError handling when visiting a URL