Write error messages that help users understand the problem and to provide information that constructively teaches users how to recover from the error
Examples
If you are using the YouTube app and the wifi is weak and cannot connect to the internet, then you will see a message saying you're offline but can watch your downloaded videos
If you type a password but does not meet the requirements then it will tell you what you are missing