WordPress at a glance
function is not described

WP_HTTP_Requests_Response::get_status() public WP 4.6.0

Retrieves the HTTP return code for the response.

{} It's a method of the class: WP_HTTP_Requests_Response{}

No Hooks.

Return

Int. The 3-digit HTTP status code.

Usage

$WP_HTTP_Requests_Response = new WP_HTTP_Requests_Response();
$WP_HTTP_Requests_Response->get_status();

Changelog

Since 4.6.0 Introduced.

Code of WP_HTTP_Requests_Response::get_status() WP 5.7.2

<?php
public function get_status() {
	return $this->response->status_code;
}