WP_REST_Server::set_status( int $code )

Sends an HTTP status code.


Parameters

$code

(Required) HTTP status.


Source

File: wp-includes/rest-api/class-wp-rest-server.php

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


Changelog

Changelog
Version Description
WP-4.4.0 Introduced.