CountingResponseHandler to simulate scenarios with retries, or downtime ot http resources.