Friendlier error message for EOFError raised inside Net::HTTP

Closes #34312.
Closes #34358.