MCPcopy
hub / github.com/multica-ai/multica / writeError

Function writeError

server/internal/handler/handler.go:281–283  ·  view source on GitHub ↗
(w http.ResponseWriter, status int, msg string)

Source from the content-addressed store, hash-verified

279}
280
281func writeError(w http.ResponseWriter, status int, msg string) {
282 writeJSON(w, status, map[string]string{"error": msg})
283}
284
285// Thin wrappers around util functions.
286//

Callers 15

InitiateListModelsMethod · 0.70
GetModelListRequestMethod · 0.70
ReportModelListResultMethod · 0.70
DaemonRegisterMethod · 0.70
DaemonDeregisterMethod · 0.70
DaemonHeartbeatMethod · 0.70
ClaimTaskByRuntimeMethod · 0.70

Calls 1

writeJSONFunction · 0.70

Tested by

no test coverage detected