MCPcopy Index your code
hub / github.com/Waishnav/devspace / sendJsonRpcError

Function sendJsonRpcError

src/server.ts:251–262  ·  view source on GitHub ↗
(
  res: Response,
  status: number,
  code: number,
  message: string,
)

Source from the content-addressed store, hash-verified

249});
250
251function sendJsonRpcError(
252 res: Response,
253 status: number,
254 code: number,
255 message: string,
256): void {
257 res.status(status).json({
258 jsonrpc: "2.0",
259 error: { code, message },
260 id: null,
261 });
262}
263
264function requestLogFields(req: Request, config: ServerConfig): Record<string, unknown> {
265 return {

Callers 1

createServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected