Use error messages when a site visitor’s actions do not comport with the user interface. Scenarios range from a person entering their email incorrectly on a contact form to them seeking to access a restricted area of the website.