A visitor opens your site and gets a full page reading "Something went wrong. Please try again later." Your monitor, checking the same URL at the same moment, reports everything healthy: HTTP 200, fast response, green row. Both are right. The server did deliver a page. The page just happens to be an apology.
A status code describes the transaction, not the content. 200 means "I received your request and sent a response". The server has no opinion on whether that response is your product or an error screen styled like it, and a monitor that only reads the code will call it up every time. The HTTP status checker shows the code your pages return right now.
How a broken page ships with a 200
- A friendly error handler. Your framework catches an exception and renders a polite fallback page instead of a raw 500. Good for visitors, invisible to monitoring: the fallback often goes out with a 200.
- An app shell that loads while the app fails. A single page app serves its HTML shell with a 200 before any JavaScript runs. If the bundle fails to load or crashes on start, visitors get a blank page or a spinner that never ends.
- A mismatched deploy. Two servers behind a load balancer serve different versions: the HTML from one points to a JavaScript file the other doesn't have. Every response is a 200; half your visitors see a white screen.
- A cached error. A CDN caches an error page during a short origin problem and keeps serving it after the origin recovers.
- The wrong site entirely. A misrouted virtual host, a default nginx welcome page, a parked domain after a DNS mistake. All valid 200s, none of them your site.
Check what the page says
The fix is a content check: the monitor reads the response body and applies a rule to the text. Two rules cover nearly every case, and they point in opposite directions:
| Rule | Fails when | Catches |
|---|---|---|
| Must contain | the expected text is missing | blank pages, half rendered pages, wrong content, parked domains |
| Must not contain | the forbidden text appears | your own error page, framework fallback screens, cached errors |
Choosing the text is the whole skill, and it comes down to picking text that doesn't change:
For must contain, use something permanent like your brand name in the header, a footer line or a menu label. Avoid marketing copy that changes every month, or the check breaks on your next redesign instead of on an outage.
For must not contain, open your own error page and copy its exact words. If your fallback says "Something went wrong on our end", make that phrase forbidden on your homepage. You already wrote the text that means broken, so point the monitor at it.
Matching is exact and case sensitive, against the raw response body (up to the first 1 MB).
Set it up on failover.io
- Create an account and add an HTTP monitor for the page.
- Open Response checks and fill in Must contain, Must not contain, or both.
- Start with your homepage, then the two or three pages where an unnoticed error costs the most: signup and checkout, usually.
A failed content check is an ordinary failure to everything after it: it counts toward the retry threshold, is confirmed from a second location, opens an incident and climbs your alert chain until someone acknowledges. A fast response with a green status code changes nothing, because the check failed on what the page said.
Soft 404: how Google sees a broken 200
Google has a name for this failure. When a URL answers 200 but the page reads like an error message or is empty, Search Console reports it as a soft 404 instead of a working page. Your monitor and Googlebot get the same status code, but Google reads the page. A must not contain check with your error text catches the same thing within minutes instead of whenever Google next crawls the URL.
APIs fail the same way. JSON endpoints often answer 200 with an error inside the body or with stale data. For those, use JSON assertions and value tracking, covered in monitoring a JSON-RPC endpoint. You can test a path first with the JSON path tester.
Frequently asked questions
Why does my monitor say my site is up when it shows an error?
Most monitors only read the HTTP status code. Error pages, fallback screens and broken app shells are often served with 200, so the check passes. A content check that reads the page text catches them.
How do I alert when a page contains an error message?
Use a "must not contain" keyword with the exact words of your error page, such as "Something went wrong". The check fails whenever that text appears in the response.
What is a soft 404?
A soft 404 is a URL that returns HTTP 200 while the page says it doesn't exist, shows an error or is empty. Google reports these in Search Console. To a status code check they look healthy, so catch them with a must not contain keyword.
Is keyword matching case sensitive?
Yes. The text must match exactly, including capital letters, so copy it from the page source rather than typing it.
Can I use both keyword checks on one monitor?
Yes. Set "must contain" to something permanent on the page and "must not contain" to your error page text. The check fails if either rule fails.