MCPcopy Index your code
hub / github.com/nodejs/node / HttpError

Class HttpError

deps/v8/tools/release/roll_bisect.py:53–62  ·  view source on GitHub ↗

Exception class for errors commuicating with a http service.

Source from the content-addressed store, hash-verified

51
52
53class HttpError(Exception):
54 """Exception class for errors commuicating with a http service."""
55
56 def __init__(self, http_status, message, *args, **kwargs):
57 super(HttpError, self).__init__(*args, **kwargs)
58 self.http_status = http_status
59 self.message = '(%d) %s' % (self.http_status, message)
60
61 def __str__(self):
62 return self.message
63
64
65def HttpQuery(uri, *, timeout=300, **params):

Callers 1

HttpJSONQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…