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

Method error500

src/Ui/UiRequest.py:842–845  ·  view source on GitHub ↗
(self, message=":(")

Source from the content-addressed store, hash-verified

840
841 # Internal server error
842 def error500(self, message=":("):
843 self.sendHeader(500, noscript=True)
844 self.log.error("Error 500: %s" % message)
845 return self.formatError("Server error", message)
846
847 @helper.encodeResponse
848 def formatError(self, title, message, details=True):

Callers 2

handleRequestMethod · 0.95
actionWebsocketMethod · 0.95

Calls 3

sendHeaderMethod · 0.95
formatErrorMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected