WP_HTTP_Requests_Response::set_status( int $code )

In this article

Sets the 3-digit HTTP status code.

Parameters

$codeintrequired
HTTP status.

Source

public function set_status( $code ) {
	$this->response->status_code = absint( $code );
}

Changelog

VersionDescription
4.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.