@tornado.gen.coroutine
    def prepare(self):
        yield self.find_current_session()
        raise tornado.web.HTTPError(self._status_code)
The way tornado's ErrorHandler works is to raise the appropriate
dataset/ETHPy150Open erkyrath/tworld/lib/tweblib/handlers.py/MyNotFoundErrorHandler.prepare