Bun node:http ServerResponse.statusMessage Stays Undefined After Response Sent
Is it fixed? Not yet.
Ongoing since Nov 20, 13:37 UTC. First reported Nov 20, 13:37 UTC.
What happened
When a node:http handler in Bun calls res.end() without res.writeHead(), res.statusMessage remains undefined after the response is sent even though the status line on the wire is correct. This affects developers utilizing Bun's node:http compatibility layer.
What caused it?
Under active investigation. No report has identified a root cause yet.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Official fixTimeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
node:http: ServerResponse.statusMessage stays undefined after the response is sent
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportnode:http: ServerResponse.statusMessage stays undefined after the response is sent(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.5+a7733435c What platform is your computer? Darwin 24.6.0 arm64 arm What steps can reproduce the bug? When a node:http handler calls res.end() without res.writeHead(), res.statusMessage stays undefined after the response is sent. The status line on the wire is correct. import http from 'node:http'; const server = http.createServer((req, res) => { res.on('finish', () => { console.log(JSON.stringify({ statusCode: res.statusCode, statusMessage:…
by JPeer264 0upvotes 1comments
FAQ
What happened in the Bun issue?
When a node:http handler in Bun calls res.end() without res.writeHead(), res.statusMessage remains undefined after the response is sent even though the status line on the wire is correct. This affects developers utilizing Bun's node:http compatibility layer.
What is affected by the Bun issue?
Bun (versions: 1.4.5+a7733435c).
When did the Bun issue start and end?
It started Nov 20, 13:37 UTC and is still ongoing (48 min so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.