removed the duplicate  URLError and HTTPError and wrote one for both.