MCPcopy Create free account
hub / github.com/TanStack/ai / jsonError

Function jsonError

examples/ts-react-chat/src/routes/api.transcribe.ts:20–25  ·  view source on GitHub ↗
(status: number, payload: Record<string, unknown>)

Source from the content-addressed store, hash-verified

18})
19
20function jsonError(status: number, payload: Record<string, unknown>) {
21 return new Response(JSON.stringify(payload), {
22 status,
23 headers: { 'content-type': 'application/json' },
24 })
25}
26
27export const Route = createFileRoute('/api/transcribe')({
28 server: {

Callers 1

api.transcribe.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected