I'm confused; are you trying to send specific response codes or do
you just want to simulate a connection dropoff? Takes about one line
of code in most languages to do the former, and the latter can be
handled by simply yanking the plug mid-connection.
Ha. I was going to try that, but the small requests I make typically
send all their data in 1 packet, and I thought it would be difficult
for an old guy like me to yank that cord in the few milliseconds
between the initial response and the payload. I think it's time for
me to learn some slightly higher-level "simulation tools".
And, you are correct. It looks like they're not that difficult.