Conversion and UX

Error Handling

Also called error messaging, failure handling

How a site detects a failure, explains it to the visitor, preserves their work and tells someone on your side.

Quick facts: Error Handling

Category
Conversion and UX
Also called
error messaging, failure handling
Level
Intermediate
Affects
Enquiry volume, checkout completion, trust
Where to see it
Server logs, form analytics, session recordings, GA4 error events
In this article4
  1. How error handling works
  2. Why error handling matters
  3. Where error handling goes wrong
  4. How to act on it

How error handling works

Something goes wrong on a website constantly: a payment declines, a form will not send, a page does not exist, an upload is too large, a session expires mid-checkout. Error handling is everything that happens afterwards — whether the failure is detected at all, what the visitor is told, whether their work is preserved, and whether anyone on your side finds out.

A usable error message does three things. It says plainly what happened, in the visitor’s language rather than the system’s. It says what to do next, and that instruction must be something the person can actually carry out. And it keeps everything they had already entered, so recovering costs a correction rather than a restart. A message that satisfies only the first of those is a notification, not error handling.

Why error handling matters

Failures land on the visitors who were furthest along. Nobody hits a payment error while browsing; they hit it at the moment they were about to buy. The same is true of a form that will not send — that is somebody who had already decided to contact you. Handling those moments badly loses the most valuable traffic on the site.

It matters commercially in a second way: silent failures are invisible. If a form breaks and shows nothing, no enquiry arrives and no error is recorded, so the reporting shows a quiet week rather than a fault. A contact form can be failing for a long stretch before anyone notices, and the first sign is often the phone going quiet. Anything that can fail should tell somebody, which is why form abandonment data and a simple failure alert are worth having before you need them.

Where error handling goes wrong

The worst case is the silent one: the button is pressed, nothing visible changes, and the visitor cannot tell whether the message sent. They either press again, creating duplicates, or leave assuming it worked. Close behind is the raw technical message — a database or server string shown to a customer, which alarms them and tells them nothing useful.

Then there is blame. Messages that say the visitor entered something invalid, when the real cause was a strict rule or a broken integration, make a person feel foolish for trying. Losing entered data on failure is another, along with a generic “something went wrong” that gives no route forward. And on a custom 404 page, sending everybody back to the homepage rather than offering the pages they were probably looking for wastes the visit entirely.

How to act on it

Write each message in three parts: what happened, what to do, and an alternative route if the fix does not work. Give a phone number or email on any failure that blocks an enquiry or a payment, so a determined customer is never stuck. Preserve everything they typed, and place the message where the problem is rather than only at the top of the page.

On the technical side, log failures somewhere a person will see them, and send an alert when a form submission or a payment fails repeatedly. Test the paths that matter by deliberately breaking them: submit a form with the network switched off, use an expired card in a test environment, and open a URL that does not exist. Fixing those three covers most of what real visitors encounter, and it costs far less than the enquiries a silent failure quietly removes from your conversion rate.

Do and do not

Do

  • Say what happened, what to do, and an alternative route
  • Keep everything the visitor already typed
  • Alert someone when submissions or payments fail

Do not

  • Show a raw server or database message to a customer
  • Let a form fail with no visible response at all
  • Blame the visitor for a rule your form set

Questions people ask about this

What makes a good error message?

Three things. It names what happened in plain language, it tells the visitor exactly what to do next, and it offers another route if that does not work, such as a phone number or an email address. It should also leave everything they typed in place, so recovering from the error means correcting one entry rather than starting again.

How would I know if my contact form is silently failing?

Submit a test enquiry yourself from a phone on mobile data, not just from your own desk, and confirm the message arrives in the inbox rather than only appearing to send. Beyond that, set up an alert on failed submissions and watch for a sudden fall in enquiries with no matching fall in traffic, which is the usual signature of a broken form.

Should a 404 page send visitors to the homepage?

Only as a last resort. Somebody landing on a missing page had a specific destination in mind, and the homepage makes them start their search over. A better 404 page offers the pages closest to the address they tried, a search box and a way to make contact. That turns a dead end into a second chance at the visit.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.