MCPcopy Create free account
hub / github.com/webpy/webpy / NotFound

Function NotFound

web/webapi.py:233–240  ·  view source on GitHub ↗

Returns HTTPError with '404 Not Found' error from the active application.

(message=None)

Source from the content-addressed store, hash-verified

231
232
233def 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
243notfound = NotFound

Callers

nothing calls this directly

Calls 3

_NotFoundClass · 0.85
notfoundMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected