{"version":3,"file":"json-response.cjs","names":[],"sources":["../../../../../src/v2/runtime/handlers/shared/json-response.ts"],"sourcesContent":["export const errorResponse = (message: string, status: number) =>\n  new Response(JSON.stringify({ error: message }), {\n    status,\n    headers: { \"Content-Type\": \"application/json\" },\n  });\n\nexport function isHandlerResponse(value: unknown): value is Response {\n  return value instanceof Response;\n}\n"],"mappings":";;;AAAA,MAAa,iBAAiB,SAAiB,WAC7C,IAAI,SAAS,KAAK,UAAU,EAAE,OAAO,SAAS,CAAC,EAAE;CAC/C;CACA,SAAS,EAAE,gBAAgB,oBAAoB;CAChD,CAAC;AAEJ,SAAgB,kBAAkB,OAAmC;AACnE,QAAO,iBAAiB"}