MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / sendErrResponse

Function sendErrResponse

examples/rpc-server/src/rpc.router.ts:48–56  ·  view source on GitHub ↗
(
  resp: express.Response,
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  send: any,
  statusCode: number,
)

Source from the content-addressed store, hash-verified

46};
47
48function sendErrResponse(
49 resp: express.Response,
50 // eslint-disable-next-line @typescript-eslint/no-explicit-any
51 send: any,
52 statusCode: number,
53) {
54 resp.statusCode = statusCode;
55 resp.send(send);
56}

Callers 1

routeHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected