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