WireHttp::getError() method   
Get a string of the last error message
Usage
// basic usage
$string = $http->getError();
// usage with all arguments
$string = $http->getError(bool $getArray = false);Arguments
| Name | Type(s) | Description | 
|---|---|---|
| $getArray(optional) | bool | Specify true to receive an array of error messages, or omit for a string. | 
Return value
string array
API reference based on ProcessWire core version 3.0.252