MCPcopy Create free account
hub / github.com/astercloud/aster / NotFound

Function NotFound

pkg/server/response.go:96–98  ·  view source on GitHub ↗

NotFound 辅助函数:404 Not Found

(w http.ResponseWriter, message string)

Source from the content-addressed store, hash-verified

94
95// NotFound 辅助函数:404 Not Found
96func NotFound(w http.ResponseWriter, message string) {
97 Error(w, http.StatusNotFound, "not_found", message)
98}
99
100// InternalError 辅助函数:500 Internal Server Error
101func InternalError(w http.ResponseWriter, message string) {

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.70

Tested by

no test coverage detected