MCPcopy Index your code
hub / github.com/InferCore/InferCore / writeError

Function writeError

internal/server/server.go:662–671  ·  view source on GitHub ↗
(w http.ResponseWriter, status int, requestID, code, message string)

Source from the content-addressed store, hash-verified

660}
661
662func writeError(w http.ResponseWriter, status int, requestID, code, message string) {
663 writeJSON(w, status, map[string]any{
664 "request_id": requestID,
665 "status": "error",
666 "error": map[string]any{
667 "code": code,
668 "message": message,
669 },
670 })
671}
672
673func (s *Server) telemetryStatus() map[string]any {
674 type statusProvider interface {

Callers 2

inferMethod · 0.85

Calls 1

writeJSONFunction · 0.85

Tested by

no test coverage detected