Suppress ajax error in console.

Given the following code:

    var URL = '//localhost:1337';
    var debug = app.debug("client:reload");
    var resp = webix.ajax().get('http:' + URL);

    resp.then(function () {
        // we are in development
        app.debug.enable("client:*");
        debug('development mode started');

        // the development watch server is up
        // add a new websocket
        app.ws = new WebSocket('ws:' + URL);

        // getting a message is the sign
        // to reload
        app.ws.onmessage = function () {
            window.location.reload();
        };

        app.ws.onerror = function () {
            debug('no reload');
        };
    // no reaction from the development
    // server, so we are in production
    }).fail(/* do nothing */);

I would expect no error message in the console. Is there a way to suppress the error message?

The ajax call will not show any custom error messages in the console, but browser may still report that some requests returns invalid code ( that is default functionality of dev. tools, not related to the Webix )

I was afraid so, I’ll have to live with it. Thanks.