MCPcopy
hub / github.com/holaboss-ai/holaOS / sendError

Function sendError

runtime/api-server/src/app.ts:2880–2882  ·  view source on GitHub ↗
(reply: FastifyReply, statusCode: number, detail: string)

Source from the content-addressed store, hash-verified

2878}
2879
2880function sendError(reply: FastifyReply, statusCode: number, detail: string) {
2881 return reply.code(statusCode).send({ detail });
2882}
2883
2884function destructiveWriteApprovalResponse(detail: string): {
2885 code: "destructive_write_requires_explicit_approval";

Callers 1

buildRuntimeApiServerFunction · 0.85

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected