The HttpMessage class
PHP Manual

HttpMessage::setResponseStatus

(PECL pecl_http >= 0.23.0)

HttpMessage::setResponseStatusSet response status

说明

public bool HttpMessage::setResponseStatus ( string $status )

Set the Response Status of the HTTP message (i.e. the string following the response code).

参数

status

the response status text

返回值

Returns TRUE on success or FALSE if the message is not of type HttpMessage::TYPE_RESPONSE.


The HttpMessage class
PHP Manual