http resolver: Attempt to handle more kinds of pre-response errors emitted by the request object.

(cherry picked from commit 61f58dc9915b39b543646de1888927530b68e5b5)
1.5.15