Home > PHP > Function > > HttpMessage::getResponseCode()

HttpMessage::getResponseCode()

HttpMessage::getResponseCode - Get response code

Syntax

public HttpMessage::getResponseCode ()

Arguments

-

Description

Get the Response Code of the Message.

Version

PHP PECL pecl_http >= 0.10.0

Return value

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