(self, status_code: int, **kwargs)
| 352 | raise APIError(404, "Flow not found.") |
| 353 | |
| 354 | def write_error(self, status_code: int, **kwargs): |
| 355 | if "exc_info" in kwargs and isinstance(kwargs["exc_info"][1], APIError): |
| 356 | self.finish(kwargs["exc_info"][1].log_message) |
| 357 | else: |
| 358 | super().write_error(status_code, **kwargs) |
| 359 | |
| 360 | |
| 361 | class IndexHandler(RequestHandler): |