Returns HTTPError with '404 Not Found' error from the active application.
(message=None)
| 231 | |
| 232 | |
| 233 | def NotFound(message=None): |
| 234 | """Returns HTTPError with '404 Not Found' error from the active application.""" |
| 235 | if message: |
| 236 | return _NotFound(message) |
| 237 | elif ctx.get("app_stack"): |
| 238 | return ctx.app_stack[-1].notfound() |
| 239 | else: |
| 240 | return _NotFound() |
| 241 | |
| 242 | |
| 243 | notfound = NotFound |