PrejectNonStandardBodyWrites
Bun

property

http.ServerOptions.rejectNonStandardBodyWrites

rejectNonStandardBodyWrites?: boolean

If set to true, an error is thrown when writing to an HTTP response which does not have a body.