I thought this has something to do with browsers returning their own internal 404 page if the content was less than 1kb? Something to do with that being the max size of error pages on old webservers, which browsers wanted to replace.
Yep. Here's the code from nginx: https://github.com/nginx/nginx/blob/master/src/http/ngx_http...
Well behaved browsers should not do that if Content-Type header is set.