Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
568
export
function
httpError(status: number, body: unknown): Item {
569
return
{
570
type
:
"http-error"
,
571
status,
572
body,
573
}
574
}
575
576
export
function
raw(input: {
577
chunks?: unknown[]
Callers
1
TestLLMServer
Class · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected