WP_REST_Server::set_status( int $code )

In this article

Sends an HTTP status code.

Parameters

$codeintrequired
HTTP status.

Source

protected function set_status( $code ) {
	status_header( $code );
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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