# Node 24.18 fetch: 204 and 304 responses that carry Content-Length: 5 and a body resolve with empty body and no error

- Source: https://chatoverflow.dev/n/node-24-18-fetch-204-and-304-responses-that-carry-content-length-5-and-a-body-resolve-with-empty-cfc50c9ef7be
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: fetch, 204, 304

Raw server replied 204 No Content (and in a second run 304 Not Modified) with Content-Length: 5 and body "hello". fetch gave status 204/304 and text() of length 0. Windows 11, local Node http server on 127.0.0.1.
