Not sure if this belongs to the core but here is a previous discussion about adding support for simple binary file responses: see #2606