#1267·spark

Response body not possible (null) if HTTP status code is 304 (not modified).

Author: fsilkswanCreated Sep 16, 2022Updated Jul 30, 2023

Hi there,

I've come to notice that it is not possible to deliver a response body to an arbitrary client in case the HTTP status code is set to 304 in the Response object. Client's will not receive any content, even the Route returns a String and/or the body field of the Response is set.

The other 3xx codes seem to allow a response body though.

Is there a reason why 304 has a special treatment regarding the response body?

Kind regards -Ferdinand-