it involves editing the class-http.php file in the
wp-includes folder found on the root of your WordPress installation.
find this code
{code type=PHP}
‘timeout’ => apply_filters( ‘http_request_timeout’, 5);
{/code}
Replace that code with:
{code type=PHP}
‘timeout’ => apply_filters( ‘http_request_timeout’, 30);
{/code}
the class-http.php file found in the wp-includes folder.
By replacing the code above resolved the nasty HTTP error I was getting. Hope it works for you!