MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / makeHttpError

Function makeHttpError

mcp/tests/http.test.ts:32–36  ·  view source on GitHub ↗
(statusCode: number)

Source from the content-addressed store, hash-verified

30}
31
32function makeHttpError(statusCode: number): Error & { statusCode: number } {
33 const err = new Error(`HTTP ${statusCode}`) as Error & { statusCode: number };
34 err.statusCode = statusCode;
35 return err;
36}
37
38describe("HTTP MCP server", () => {
39 let stub: McpClient;

Callers 2

http.test.tsFile · 0.85
makeProbeClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected