refactor(rest) main.sendResponse -> sendMsg