Returns HTTPError with '404 not found' message
(self)
| 550 | return web.ctx.app_stack[index - 1] |
| 551 | |
| 552 | def notfound(self): |
| 553 | """Returns HTTPError with '404 not found' message""" |
| 554 | parent = self.get_parent_app() |
| 555 | if parent: |
| 556 | return parent.notfound() |
| 557 | else: |
| 558 | return web._NotFound() |
| 559 | |
| 560 | def internalerror(self): |
| 561 | """Returns HTTPError with '500 internal error' message""" |