Get response code


(PECL pecl_http >= 0.10.0)

HttpMessage::getResponseCodeGet response code

Описание

public int HttpMessage::getResponseCode ( void )

Get the Response Code of the Message.

Возвращаемые значения

Returns the HTTP response code if the message is of type HttpMessage::TYPE_RESPONSE, else FALSE.