update rooms.js check error response