This page redirects to an external site: https://developer.wordpress.org/reference/functions/wp_remote_retrieve_response_code/
Retrieve only the response code from the raw response.
Will return an empty string if incorrect parameter value is given.
<?php wp_remote_retrieve_response_code( $response ); ?>
$response = wp_remote_get('http://www.foo.com/file.txt');
$response_code = wp_remote_retrieve_response_code( $response );
$response code will contain a string representing the numeric response code sent from the server
Since: 2.7.0
wp_remote_retrieve_response_code() is located in wp-includes/http.php