Error handling with dhtmlxDataStore

I’m using dhtmlxDataStore.load method to get JSON data from a URL. If the URL is not responsive or has any problem it may return a 403 or 404 error and the callback function is not executed. How can I trap this error? I’ve seen dhtmlxError.catchError, but it seems to work with LoadXML only. Any idea is appreciated.

You may try to use the object callback function of the load() method of the datastore.
For example:

data.load(url,{ success:function(text,xml,loader){ }, error:function(text,xml,loader){ } })