const http = require('http');
['3001', '3004', '3005'].forEach(port => {
  http.get(`http://127.0.0.1:${port}`, (res) => {
    console.log(`Port ${port} Status Code:`, res.statusCode);
  }).on('error', (e) => {
    console.error(`Port ${port} error: ${e.message}`);
  });
});
