Home
last modified time | relevance | path

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

12

/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.py51 self.assertRaises(server_errors.HTTPError,
62 self.assertRaises(server_errors.HTTPError,
92 self.assertRaises(server_errors.HTTPError,
Dcommands_unittest.py64 self.assertRaises(server_errors.HTTPError,
70 self.assertRaises(server_errors.HTTPError,
86 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.py49 self.assertRaises(server_errors.HTTPError,
86 self.assertRaises(server_errors.HTTPError,
127 self.assertRaises(server_errors.HTTPError,
Dcommon_util_unittest.py77 self.assertRaises(server_errors.HTTPError,
82 self.assertRaises(server_errors.HTTPError,
Doauth.py100 raise server_errors.HTTPError(
Dresource_method_unittest.py67 self.assertRaises(server_errors.HTTPError,
/external/python/cpython2/Lib/test/
Dtest_robotparser.py3 from urllib2 import urlopen, HTTPError
261 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/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/autotest/site_utils/
Dhwid_lib.py63 except (urllib2.URLError, urllib2.HTTPError) as e:
/external/googletest/googlemock/scripts/
Dupload.py115 class ClientLoginError(urllib2.HTTPError):
119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
206 except urllib2.HTTPError, e:
231 except urllib2.HTTPError, e:
235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg,
330 except urllib2.HTTPError, e:
/external/googletest/googletest/scripts/
Dupload.py115 class ClientLoginError(urllib2.HTTPError):
119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
206 except urllib2.HTTPError, e:
231 except urllib2.HTTPError, e:
235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg,
330 except urllib2.HTTPError, e:
/external/v8/testing/gtest/scripts/
Dupload.py115 class ClientLoginError(urllib2.HTTPError):
119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
206 except urllib2.HTTPError, e:
231 except urllib2.HTTPError, e:
235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg,
330 except urllib2.HTTPError, e:
/external/google-breakpad/src/testing/scripts/
Dupload.py115 class ClientLoginError(urllib2.HTTPError):
119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
206 except urllib2.HTTPError, e:
231 except urllib2.HTTPError, e:
235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg,
330 except urllib2.HTTPError, e:
/external/v8/testing/gmock/scripts/
Dupload.py115 class ClientLoginError(urllib2.HTTPError):
119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
206 except urllib2.HTTPError, e:
231 except urllib2.HTTPError, e:
235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg,
330 except urllib2.HTTPError, e:
/external/google-breakpad/src/testing/gtest/scripts/
Dupload.py115 class ClientLoginError(urllib2.HTTPError):
119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
206 except urllib2.HTTPError, e:
231 except urllib2.HTTPError, e:
235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg,
330 except urllib2.HTTPError, e:

12