Resolve problem with repeated request when persistent connections are open and change the default status code to 404, which highlighted a problem with the env.ResponseStatusCode setter.