I am using some REST API as input for AJAX based autofill lists. For example ZIP Codes/Towns via Rest API as Autocomplete in a ZIP field and then fill town in as well.
All this works well with the functionality of PHPRunner.
But know I´d like to be prepared for the case, that the REST API does not work or is not available (for what reason ever) that I get some kind of fallback functionality. Currently you only get a big red PHP error, if the REST API is offline, does not respond or does not allow the request. But I would like to be able to work even then with my solutions. Manually editing ZIP codes and towns would be fine, if the API server does not respond.
I tried to accomplish this, by manually editing the PHPrunner generated code. Instead of the false message I would like to provide an empty array or small set of values. But until now I only get different error messages with some error 256 in classes/datasource/rest.php
Any help would be appreciated.