WireHttp::getHttpCode() method

Get last HTTP code

Usage

// basic usage
$int = $http->getHttpCode();

// usage with all arguments
$int = $http->getHttpCode(bool $withText = false);

Arguments

NameType(s)Description
$withText (optional)bool

Specify true to include the HTTP code text label with the code

Return value

int string


$http methods and properties

API reference based on ProcessWire core version 3.0.251