Add message.js to handle error messages
Add error handling for wrong api and no internet connection
Add test case for wrong api