Lines Matching refs:HTTPError
208 :exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific case of
231 HTTPError section in Handling Exceptions
239 urlopen will raise an :exc:`HTTPError`. Typical errors include '404' (page not
244 The :exc:`HTTPError` instance raised will have an integer 'code' attribute, which
327 *and* an error page. You can use the :exc:`HTTPError` instance as a response on the
334 ... except urllib.error.HTTPError as e:
348 So if you want to be prepared for :exc:`HTTPError` *or* :exc:`URLError` there are two
358 from urllib.error import URLError, HTTPError
362 except HTTPError as e:
374 The ``except HTTPError`` *must* come first, otherwise ``except URLError``
375 will *also* catch an :exc:`HTTPError`.
401 The response returned by urlopen (or the :exc:`HTTPError` instance) has two