MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / error404

Method error404

src/Ui/UiRequest.py:837–839  ·  view source on GitHub ↗
(self, path="")

Source from the content-addressed store, hash-verified

835
836 # Send file not found error
837 def error404(self, path=""):
838 self.sendHeader(404, noscript=True)
839 return self.formatError("Not Found", path, details=False)
840
841 # Internal server error
842 def error500(self, message=":("):

Callers 6

routeMethod · 0.95
actionSiteMediaMethod · 0.95
actionSiteAddPromptMethod · 0.95
actionFileMethod · 0.95
actionSiteMediaMethod · 0.80
actionZipMethod · 0.80

Calls 2

sendHeaderMethod · 0.95
formatErrorMethod · 0.95

Tested by

no test coverage detected