Lines Matching refs:HTTPError
191 :exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific case of
212 HTTPError section in Handling Exceptions
220 urlopen will raise an :exc:`HTTPError`. Typical errors include '404' (page not
225 The :exc:`HTTPError` instance raised will have an integer 'code' attribute, which
308 *and* an error page. You can use the :exc:`HTTPError` instance as a response on the
315 ... except urllib2.HTTPError as e:
330 So if you want to be prepared for :exc:`HTTPError` *or* :exc:`URLError` there are two
339 from urllib2 import Request, urlopen, URLError, HTTPError
343 except HTTPError as e:
355 The ``except HTTPError`` *must* come first, otherwise ``except URLError``
356 will *also* catch an :exc:`HTTPError`.
381 The response returned by urlopen (or the :exc:`HTTPError` instance) has two useful