Skip to content

HttpResponse

A completed request. request() resolves with it when the server answered, whatever the status code.

body: Buffer

Response body bytes. Empty for HEAD requests and for responses without a body.


headers: Record<string, string>

The headers named in responseHeaders that the response contains, with names as you wrote them.


status: number

HTTP status code the server returned, for example 200 or 404. Check it yourself: error statuses still resolve.


wasTimedOut: boolean

true when the request timed out. A timeout normally rejects the promise instead, so this is false on a resolved response.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.