CoreStats is an Extension responsible for response_received_countDownloaderStats is Middleware responsible for downloader/response_count .
The CoreStats connects the signal signals.response_received signal with an increase in the response_received_count value, so it should count every received signals.response_received response (even bad conditions), while the DownloaderStats middleware processes the response in a certain order, as we can see here, its order is 850 , so previous Downloader middlewares (those whose number is less than 850 may discard or even receive errors when processing a response, and downloader/response_count will never be incremented.
source share