Get last HTTP code
Usage
// basic usage
$int = $http->getHttpCode();
// usage with all arguments
$int = $http->getHttpCode(bool $withText = false);
Arguments
Name | Type(s) | Description |
---|---|---|
withText (optional) | bool | Specify true to include the HTTP code text label with the code |
Return value
int
string
API reference based on ProcessWire core version 3.0.236