(status: number, code: string, detail: string)
| 3 | } |
| 4 | |
| 5 | export function jsonErrorResponse(status: number, code: string, detail: string): Response { |
| 6 | return new Response(JSON.stringify({ error: code, detail }), { |
| 7 | status, |
| 8 | headers: { "content-type": "application/json; charset=utf-8" }, |
| 9 | }); |
| 10 | } |
no outgoing calls
no test coverage detected