MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / jsonResponse

Function jsonResponse

packages/cli/src/cloud/index.test.ts:17–21  ·  view source on GitHub ↗
(status: number, body: unknown)

Source from the content-addressed store, hash-verified

15import { HyperframesApiError } from "./_gen/client.js";
16
17const jsonResponse = (status: number, body: unknown): Response =>
18 new Response(JSON.stringify(body), {
19 status,
20 headers: { "content-type": "application/json" },
21 });
22
23const ok = (body: unknown): Response => jsonResponse(200, body);
24const unauthorized = (): Response =>

Callers 3

okFunction · 0.85
unauthorizedFunction · 0.85
index.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected