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

Class _NotFound

web/webapi.py:222–230  ·  view source on GitHub ↗

`404 Not Found` error.

Source from the content-addressed store, hash-verified

220
221
222class _NotFound(HTTPError):
223 """`404 Not Found` error."""
224
225 message = "not found"
226
227 def __init__(self, message=None):
228 status = "404 Not Found"
229 headers = {"Content-Type": "text/html; charset=utf-8"}
230 HTTPError.__init__(self, status, headers, message or self.message)
231
232
233def NotFound(message=None):

Callers 1

NotFoundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected