Issue #26045: Merge http.client error addition from 3.5