app.get('/items', (req, res) => {
const items = ['item1', 'item2', 'item3'];
items.forEach(item => {
res.write(item); // Attempting to write multiple times
});
res.end(); // The proper way to end the response after write, but might lead to ERR_HTTP_HEADERS_SENT if not handled correctly
});