(c: any, status: number, code: string, detail: string)
| 1 | export function jsonError(c: any, status: number, code: string, detail: string): Response { |
| 2 | return c.json({ error: code, detail }, status); |
| 3 | } |
| 4 | |
| 5 | export function jsonErrorResponse(status: number, code: string, detail: string): Response { |
| 6 | return new Response(JSON.stringify({ error: code, detail }), { |
no outgoing calls
no test coverage detected