MCPcopy
hub / github.com/benjitaylor/agentation / sendError

Function sendError

mcp/src/server/http.ts:208–210  ·  view source on GitHub ↗

* Send error response.

(res: ServerResponse, status: number, message: string)

Source from the content-addressed store, hash-verified

206 * Send error response.
207 */
208function sendError(res: ServerResponse, status: number, message: string): void {
209 sendJson(res, status, { error: message });
210}
211
212/**
213 * Handle CORS preflight.

Callers 11

proxyToCloudFunction · 0.85
createSessionHandlerFunction · 0.85
getSessionHandlerFunction · 0.85
addAnnotationHandlerFunction · 0.85
updateAnnotationHandlerFunction · 0.85
getAnnotationHandlerFunction · 0.85
deleteAnnotationHandlerFunction · 0.85
requestActionHandlerFunction · 0.85
addThreadHandlerFunction · 0.85
sseHandlerFunction · 0.85
startHttpServerFunction · 0.85

Calls 1

sendJsonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…