[IMPR] use response in http.error_handling_callback()
[IMPR] use response in http.error_handling_callback()

Remove some use of HttpRequest() inside http.py.

Bug: T265206
Change-Id: I5b62ff442a5df1d99bc2e656f74f9a67e25d7c6c

wikimedia/pywikibot-core,wikimedia/pywikibot-core