flatStatus(status) {
        switch (status) {
            case UP:
            case MAINTENANCE:
                return UP;
            case DOWN:
            case PENDING:
                return DOWN;
        }
        throw new Error("Invalid status");
    }
Flat status to UP or DOWN
@param {number} status the status which should be turned into a flat status
@returns {UP|DOWN|PENDING} The flat status
@throws {Error} Invalid status