Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
diff --git a/Lib/urllib/error.py b/Lib/urllib/error.py
index 40add41..eb14c1d 100644
--- a/Lib/urllib/error.py
+++ b/Lib/urllib/error.py
@@ -58,6 +58,10 @@
     def reason(self):
         return self.msg
 
+    def info(self):
+        return self.hdrs
+
+
 # exception raised when downloaded size does not match content-length
 class ContentTooShortError(URLError):
     def __init__(self, message, content):