MCPcopy Index your code
hub / github.com/anomalyco/opencode / httpError

Function httpError

packages/opencode/test/lib/llm-server.ts:568–574  ·  view source on GitHub ↗
(status: number, body: unknown)

Source from the content-addressed store, hash-verified

566}
567
568export function httpError(status: number, body: unknown): Item {
569 return {
570 type: "http-error",
571 status,
572 body,
573 }
574}
575
576export function raw(input: {
577 chunks?: unknown[]

Callers 1

TestLLMServerClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected