checkResult(result) {
        if (result.status == null) {
            throw new Error("Bark notification failed with invalid response!");
        }
        if (result.status < 200 || result.status >= 300) {
            throw new Error("Bark notification failed with status code " + result.status);
        }
    }
Check if result is successful
@param {object} result Axios response object
@returns {void}
@throws {Error} The status code is not in range 2xx