Home
last modified time | relevance | path

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

123

/external/autotest/client/common_lib/cros/fake_device_server/
Dregistration_tickets.py59 raise server_errors.HTTPError(400, 'Unclaimed ticket')
79 raise server_errors.HTTPError(401, 'Missing Authorization.')
84 raise server_errors.HTTPError(400, 'Malformed Authorization field')
90 raise server_errors.HTTPError(403, 'Authorization requires '
93 raise server_errors.HTTPError(403, 'Wrong access token.')
133 raise server_errors.HTTPError(
139 raise server_errors.HTTPError(
143 raise server_errors.HTTPError(
146 raise server_errors.HTTPError(
173 server_errors.HTTPError(400, 'Missing id for operation')
[all …]
Dcommands.py76 raise server_errors.HTTPError(
80 raise server_errors.HTTPError(
84 raise server_errors.HTTPError(
120 raise server_errors.HTTPError(400, 'Unsupported API')
122 raise server_errors.HTTPError(
128 raise server_errors.HTTPError(401, 'Access denied.')
147 raise server_errors.HTTPError(
159 raise server_errors.HTTPError(400, 'Require JSON body')
Dserver_errors.py10 class HTTPError(cherrypy.HTTPError): class
17 cherrypy.HTTPError.__init__(self, status, message)
Dcommon_util.py78 raise server_errors.HTTPError(
82 raise server_errors.HTTPError(
87 raise server_errors.HTTPError(
Dresource_delegate.py48 raise server_errors.HTTPError(400, 'Invalid data key: %r' % (key,))
71 raise server_errors.HTTPError(400, 'Invalid data key: %r' % (key,))
111 raise server_errors.HTTPError(400, "Ticket id doesn't match")
Ddevices.py67 raise server_errors.HTTPError(400, 'Empty device resource.')
71 raise server_errors.HTTPError(400, 'Must specify %s' % key)
136 raise server_errors.HTTPError(400, 'Unsupported operation.')
176 raise server_errors.HTTPError(401, 'Access denied.')
Ddevices_unittest.py49 self.assertRaises(server_errors.HTTPError,
60 self.assertRaises(server_errors.HTTPError,
90 self.assertRaises(server_errors.HTTPError,
Dcommands_unittest.py62 self.assertRaises(server_errors.HTTPError,
68 self.assertRaises(server_errors.HTTPError,
84 self.assertRaises(server_errors.HTTPError,
Dfail_control.py32 raise server_errors.HTTPError(500, 'Instructed to fail this request')
47 raise server_errors.HTTPError(
Dresource_method.py38 server_errors.HTTPError(400, 'Missing id for operation')
58 server_errors.HTTPError(400, 'Missing id for operation')
Dregistration_tickets_unittest.py48 self.assertRaises(server_errors.HTTPError,
84 self.assertRaises(server_errors.HTTPError,
121 self.assertRaises(server_errors.HTTPError,
Dcommon_util_unittest.py77 self.assertRaises(server_errors.HTTPError,
82 self.assertRaises(server_errors.HTTPError,
Dresource_method_unittest.py62 self.assertRaises(server_errors.HTTPError,
/external/openscreen/tools/
Dcurlish.py13 from urllib2 import HTTPError, URLError, urlopen
15 from urllib.error import HTTPError, URLError
32 except HTTPError as e:
/external/python/cpython3/Doc/library/
Durllib.error.rst34 .. exception:: HTTPError
37 :exc:`HTTPError` can also function as a non-exceptional file-like return
55 :exc:`HTTPError`.
/external/oss-fuzz/infra/cifuzz/
Dclusterfuzz_deployment.py89 except urllib.error.HTTPError:
166 except urllib.error.HTTPError:
/external/tensorflow/tensorflow/python/tpu/client/
Dclient.py31 from six.moves.urllib.error import HTTPError
322 except HTTPError as e:
406 except HTTPError as e:
/external/rust/crates/grpcio-sys/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:
/external/python/cpython2/Doc/howto/
Durllib2.rst191 :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``
[all …]
/external/python/cpython3/Lib/distutils/command/
Dupload.py12 from urllib.request import urlopen, Request, HTTPError
197 except HTTPError as e:
/external/python/cpython2/Lib/distutils/command/
Dupload.py7 from urllib2 import urlopen, Request, HTTPError
184 except HTTPError, e:
/external/autotest/tko/
Djsonp_fetcher.cgi28 except urllib2.HTTPError:
/external/python/cpython3/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 …]
/external/python/setuptools/setuptools/tests/
Dtest_packageindex.py35 assert isinstance(v, urllib.error.HTTPError)
51 assert isinstance(v, urllib.error.HTTPError)
/external/python/cpython3/Lib/distutils/tests/
Dtest_upload.py5 from urllib.request import HTTPError
203 (HTTPError('url', 400, 'httperror', {}, None),

123