MCPcopy Index your code
hub / github.com/simstudioai/sim / errorResponse

Function errorResponse

apps/sim/app/api/providers/together/models/route.test.ts:57–62  ·  view source on GitHub ↗
(status: number, statusText = 'Unauthorized')

Source from the content-addressed store, hash-verified

55})
56
57const errorResponse = (status: number, statusText = 'Unauthorized') => ({
58 ok: false,
59 status,
60 statusText,
61 json: vi.fn().mockResolvedValue({}),
62})
63
64/**
65 * Builds a request whose query string carries the given workspaceId. Passing

Callers 1

route.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected