Every website produces errors. Visitors mistype email addresses, skip required fields, enter dates in unexpected formats or lose their connection mid-payment. The error itself is rarely the problem. The problem is an error message that confuses, scolds or offers no way forward. Well-designed error messages turn a moment of frustration into a quick fix.
The qualities of a good error message
Helpful error messages share a few traits:
- Visible: people notice them right away.
- Specific: they say exactly what went wrong.
- Located: they appear next to the problem, not only at the top of the page.
- Constructive: they tell people how to fix it.
- Polite: they do not blame the visitor.
Say what happened, in plain words
Technical messages such as Error 422 or Invalid input mean little to most people. Translate them into everyday language and include the fix:
- Instead of Invalid email, try: Please include an @ in the email address.
- Instead of Field required, try: Please enter your phone number so we can confirm your booking.
- Instead of Date error, try: Please choose a date after today.
- Instead of Payment failed, try: Your card was declined. Please check the details or try another card.
Avoid words like illegal, invalid or wrong where possible. They make it sound as if the visitor did something bad, when often the form simply did not explain what it expected.
Prevent errors in the first place
The best error message is one nobody needs to see. Many errors can be prevented with better form design:
- Show format examples before people type, such as a sample phone number.
- Accept common variations, like phone numbers with or without dashes.
- Use date pickers or clear date formats.
- Mark required fields clearly, and remove fields that are not really needed.
- Use the right input types so phones show suitable keyboards.
Timing and placement
Showing an error the moment someone starts typing feels like being corrected mid-sentence. Waiting until they leave a field, or until they submit, is usually kinder. When a form is submitted with errors, keep everything the visitor already typed, show a short summary at the top that lists the problems and highlight each affected field with a message beside it. Losing all entered information because of one mistake is one of the most frustrating experiences on the web.
Make errors accessible
Do not rely on color alone, such as turning a border red. Pair color with text and, if you like, an icon, so people with color vision deficiencies can see the problem. Error messages should be connected to their fields in the code so screen readers announce them, and focus should move sensibly to the summary or first error after submission. WCAG includes specific guidance on identifying errors and suggesting corrections, which is a useful reference.
Take a few minutes to break your own forms on purpose: leave things blank, type nonsense, use a phone. Read every message you see, and rewrite any that would leave a customer unsure what to do next.
Rewriting Your Error Messages, Step by Step
Most sites already have error messages, even if nobody chose the wording; many come from the form plugin or platform defaults. A short project can bring them up to standard.
- Find every message. Go through each form and trigger every error you can: blank fields, wrong formats, too-short entries, past dates, mismatched email confirmation fields. Take a screenshot or note of each message.
- Check the settings. Many form tools let you customize messages for each field. Find where those settings live, or ask whoever manages your site.
- Rewrite with a simple formula. Each message should name the field, say what is needed and, where helpful, give an example: Please enter a phone number with area code, such as 555-123-4567.
- Check placement. Confirm that messages appear beside the field they relate to, and that a summary appears when a long form is submitted with several problems.
- Test on a phone. Make sure messages are visible without zooming and are not hidden behind the on-screen keyboard.
Errors Beyond Forms
Form errors are the most common, but visitors encounter other kinds too, and the same principles apply.
Payment problems
Payment providers often return limited information about why a card was declined, for security reasons. Your message cannot always be specific, but it can be calm and practical: suggest checking the card details, trying another payment method or contacting the card issuer, and reassure people that they have not been charged if that is the case.
Connection or server problems
When something fails on your side, say so honestly. Something went wrong on our end. Your information has not been lost; please try again in a moment is far more reassuring than a technical code. If you can, include a way to reach you by phone or email.
Booking conflicts
If a time slot is taken while someone is booking, explain what happened and show the nearest available alternatives, rather than sending the visitor back to the start.
Common Mistakes
- Clearing the form after an error. This is the single most frustrating behavior to avoid. Always preserve what people typed, with the possible exception of sensitive fields like passwords or card numbers.
- Generic messages for every problem. Please correct the errors below, with nothing highlighted, leaves people hunting.
- Overly strict validation. Rejecting legitimate names with apostrophes or hyphens, international phone formats or email addresses with newer domain endings creates errors where none should exist.
- Jokes at the wrong moment. A playful tone can feel dismissive when someone is trying to pay or book something important.
Questions Readers Ask
Should I validate fields as people type?
For some things, like showing that a password meets requirements, live feedback helps. For most fields, checking when the visitor leaves the field or submits the form is less intrusive.
How do I know which errors people hit most?
Some form tools and analytics setups can track errors. Even without that, watching a few people complete your forms will reveal the most common stumbling points quickly.
Who should own error message wording?
Whoever writes the rest of your site’s text should review it, so the voice stays consistent. Developers can then put the approved wording in place. Keeping a simple list of approved messages makes future forms faster to build and easier to keep consistent.




