The way I got the bug was as follows:
String request = "http://localhost:1234/";
for(int i=0;i<5*1024;i++)
request += "a";
Component component = new Component();
Server server = component.getServers().add(Protocol.HTTP, 1234);
component.start();
Client client = new Client(Protocol.HTTP);
Response response = client.get(request);
response.getStatus() will be equal to "null (-1)"
However, if you insert:
server.getContext().getParameters().set("headerBufferSize", "6144", false);
before component.start(), then response.getStatus() will be 404, as expected.