Skip to main content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.


The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Content style guide

Error messages

Error messages tell the user that something has gone wrong. These messages should be clear, direct, and have an actionable call to action (CTA) for the user.

Error messages mainly appear in interactive experiences such as tools, forms, and applications. This category of messaging has visual design and formatting that affects copy and thus you must:

Review the help users to recover from errors pattern

Messages dictionary

The messages dictionary holds the title, content, component, and state for each scenario of message on the site. The messages dictionary is broken up into 4 types of messages:


Alerts the user of important system-related issues or status. It’s initiated by the system and it’s not a result of the user’s actions.


Nudges the user to enter or update data in the system. It can be initiated by either the system or another user.


Appears when the user tries to access an item that’s not available to them. It may be because the record has been deleted, the user doesn’t have access, etc.


The application’s response when the user is interacting with it. The majority of create, read, update, delete (CRUD) actions will result in feedback messaging.

Categories adapted from Salesforce Lightning Design System

Last updated: Aug 25, 2022