MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / errorResponse

Function errorResponse

packages/http-routes/src/errors.ts:112–120  ·  view source on GitHub ↗
(error: ApiError)

Source from the content-addressed store, hash-verified

110}
111
112export function errorResponse(error: ApiError) {
113 return {
114 success: false as const,
115 error: {
116 code: error.code,
117 message: error.message,
118 },
119 }
120}

Callers 5

requireBearerTokenFunction · 0.90
registerImportRoutesFunction · 0.90
startInternalServerFunction · 0.90
createServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected