Tell the Truth About a Missing Destination
A genuinely nonexistent page should normally return HTTP 404 while displaying a helpful recovery page. A 200 success response with a not-found message or unrelated homepage is not the same behavior and can create a soft-404 problem. Keep the technical response and visible explanation consistent.
Keep the visible message calm and practical. A hypothetical opening is This page could not be found. You can return to Services, browse Resources, or use the practice's contact information. Adapt the choices to actual destinations; do not add a contact promise the practice does not offer.
Provide a Small Set of Recovery Options
Link to core information and relevant navigation without overwhelming the reader. If a site search exists and works, it may help. Do not publish a decorative error screen with no usable links or a giant menu of every article.
Distinguish a missing page from a moved page. A known approved move may need a relevant redirect. A genuinely nonexistent path needs honest not-found behavior. Sending every unknown URL to the homepage confuses both the reader task and technical diagnosis.
Expected Response Comparison
The third row is a known approved move, not an arbitrary missing URL. Do not turn every nonexistent request into a homepage redirect.
| Requested path in this fictional site | Expected status | Visible result |
|---|---|---|
| /services/example | 200 | The actual valid service page |
| /resources/no-such-guide | 404 | Helpful not-found explanation and working recovery links |
| /old-consultation-guide | Approved relevant redirect, such as 301 | Equivalent current guide after the redirect |
Test With a Deliberately Missing Path
Use a safely chosen nonexistent URL and inspect the status, message, links, keyboard focus, and mobile layout. Test a known valid page alongside it so a routing error does not make every request appear missing. Confirm no private diagnostic content or submitted personal information appears on the error screen.
After an authorized release, repeat the check on the public domain. Keep the result specific to the tested runtime and paths. A working not-found page helps someone recover and supports accurate site behavior; it does not make broken internal links acceptable or replace a useful URL-preservation plan.
Put This Into Practice
Moved pages and genuinely missing pages require different treatment.
Check public status, message, recovery links, keyboard use, and mobile layout.
- Explain the missing page
- Offer relevant working destinations
- Test a nonexistent path and a valid control