Home
last modified time | relevance | path

Searched refs:HTTPError (Results 1 – 25 of 27) sorted by relevance

12

/third_party/node/deps/npm/node_modules/create-error-class/
Dreadme.md18 var HTTPError = createErrorClass('HTTPError', function (props) {
22 throw new HTTPError({statusCode: 404});
/third_party/python/Doc/library/
Durllib.error.rst34 .. exception:: HTTPError
37 :exc:`HTTPError` can also function as a non-exceptional file-like return
55 :exc:`HTTPError`.
Durllib.request.rst286 are turned into :exc:`~urllib.error.HTTPError` exceptions.
833 is the case, :exc:`~urllib.error.HTTPError` is raised. See :rfc:`2616` for
836 An :class:`HTTPError` exception raised as a security consideration if the
847 redirect to *newurl*. Otherwise, raise :exc:`~urllib.error.HTTPError` if
1161 :exc:`~urllib.error.HTTPError` if no other handler handles the error.
Dfunctools.rst215 except urllib.error.HTTPError:
/third_party/grpc/tools/release/
Drelease_notes.py101 from urllib2 import Request, urlopen, HTTPError
104 from urllib.request import Request, urlopen, HTTPError
112 except HTTPError as e:
/third_party/node/deps/npm/node_modules/got/
Dindex.js123 throw new got.HTTPError(statusCode, opts);
182 proxy.emit('error', new got.HTTPError(statusCode, opts), null, res);
350 got.HTTPError = createErrorClass('HTTPError', function (statusCode, opts) {
Dreadme.md195 #### got.HTTPError
/third_party/python/Lib/distutils/command/
Dupload.py12 from urllib.error import HTTPError
198 except HTTPError as e:
Dregister.py291 except urllib.error.HTTPError as e:
/third_party/python/Doc/howto/
Durllib2.rst208 :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``
[all …]
/third_party/python/Lib/distutils/tests/
Dtest_upload.py5 from urllib.error import HTTPError
203 (HTTPError('url', 400, 'httperror', {}, None),
/third_party/python/Lib/urllib/
Derror.py35 class HTTPError(URLError, urllib.response.addinfourl): class
Drequest.py102 from urllib.error import URLError, HTTPError, ContentTooShortError
643 raise HTTPError(req.full_url, code, msg, hdrs, fp)
666 raise HTTPError(req.full_url, code, msg, headers, fp)
708 raise HTTPError(
738 raise HTTPError(req.full_url, code,
1111 raise HTTPError(req.full_url, 401, "digest auth failed",
1791 except (HTTPError, URLError):
1987 raise HTTPError(url, errcode, errmsg, headers, None)
2192 raise HTTPError(newurl, errcode,
Drobotparser.py63 except urllib.error.HTTPError as err:
/third_party/python/Tools/ssl/
Dmultissltests.py33 from urllib.error import HTTPError
35 from urllib2 import urlopen, HTTPError
258 except HTTPError as e:
/third_party/googletest/googletest/scripts/
Dupload.py130 class ClientLoginError(urllib2.HTTPError):
134 urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
221 except urllib2.HTTPError, e:
246 except urllib2.HTTPError, e:
250 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg,
345 except urllib2.HTTPError, e:
/third_party/python/Lib/test/
Dtest_urllib2_localnet.py310 except urllib.error.HTTPError:
317 self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url)
363 self.assertRaises(urllib.error.HTTPError,
369 self.assertRaises(urllib.error.HTTPError,
Dtest_urllib2.py1178 except urllib.error.HTTPError:
1217 except urllib.error.HTTPError:
1229 except urllib.error.HTTPError:
1245 self.assertRaises(urllib.error.HTTPError, h.http_error_302,
1815 err = urllib.error.HTTPError(url, code, msg, hdrs, fp)
Dtest_site.py491 except urllib.error.HTTPError as e:
Dtest_urllib.py495 with self.assertRaisesRegex(urllib.error.HTTPError, msg):
509 self.assertRaises(urllib.error.HTTPError, urlopen,
/third_party/python/Lib/test/support/
Dsocket_helper.py230 (isinstance(err, urllib.error.HTTPError) and
/third_party/python/Misc/NEWS.d/
D3.5.0b1.rst647 urllib.error.HTTPError now has a proper repr() representation. Patch by
D3.6.0a2.rst419 distutils.upload now correctly handles HTTPError. Initial patch by Claudiu
D3.5.2rc1.rst511 distutils.upload now correctly handles HTTPError. Initial patch by Claudiu
/third_party/python/Doc/whatsnew/
D3.4.rst1648 :class:`~urllib.error.HTTPError` objects now have a
1649 :attr:`~urllib.error.HTTPError.headers` attribute that provides access to the

12