(self, status, headers={}, data="")
| 82 | |
| 83 | class HTTPError(Exception): |
| 84 | def __init__(self, status, headers={}, data=""): |
| 85 | ctx.status = status |
| 86 | for k, v in headers.items(): |
| 87 | header(k, v) |
| 88 | self.data = data |
| 89 | Exception.__init__(self, status) |
| 90 | |
| 91 | |
| 92 | def _status_code(status, data=None, classname=None, docstring=None): |