
Jurij Tokarski
A 404 Page That Answers the Broken URL
My 404 page started as an AI chat. Free text from strangers was a privacy risk, and every turn cost money. Now it answers the broken link in one line.
The 404 page is the one page on a site that only appears when something went wrong. The default response, "page not found, go home", confirms the failure, and the visitor bounces.
Tom Orbach made the case that 404 pages should be lead magnets. His reason: AI hallucinations now send real traffic to URLs that never existed.
His version: a branded gift in exchange for an email. I hoped mine could start a conversation. It almost never did.
In October I kept the part people saw, a fake crash and one answer, and cut the chat.

The Fake Crash Comes First
A broken URL on varstatt.com opens a replica of the Next.js dev error overlay: red bar, stack trace, source preview. For 200 ms, the site looks broken.
Then the bar turns amber, a braille spinner appears, and the text reads "Handling the issue" while the dots pulse. That state holds at least 1,600 ms, long enough for one full pulse, even when the answer is ready.
When it clears, the bar turns green, the message reads "Handled", and the overlay morphs into the answer. Without the hold, the morph feels fake.
The old chat opened with the same crash and morph, with a 500 ms hold. The real change came after the morph.
The First Version Was a Chat
I built the chat in April, and this post first described it a month later. The chat read the path as the first message. So /json got a link to the JSON formatter, /joke-of-the-day got a joke, and gibberish got a question back.
It knew every page on the site, and it could link only pages that exist. So the page built for broken URLs could never create one. It answered off-topic questions as software projects, straight-faced.
After a few messages it asked for an email, once. A visitor's third message pinged my inbox with the whole conversation.
272 Opens, Six Chats
The chat opened 272 times in four and a half months. Six times someone typed. Nobody left an email.
A third of those opens came from one broken link to my principles, with a trailing dot: /principles.. It sent 62 visitors to the 404 over two days in June, and 95 by October.
That link proved the idea: broken URLs bring real visitors, and the 404 answered them. None of them typed. None carried a referrer either, so where the link sat is unknown.
Two things had slipped past me in April. Free text from strangers is a privacy risk, and whatever a visitor typed could land in my inbox. Every view also stored a session, even with nothing typed.
And every turn costs AI money, with nothing in the code to cap it. The chat greeted each view with a model call before anyone typed: 272 calls for six chats.
So in October, I decided that every free-form chat would leave the site. The 404 chat and the chat on my principles page went that day. Discovery's chats followed two days later.
One Line per Broken URL
The 404 kept its AI, but only one turn. I wanted it context-aware, because that is the whole idea of a 404 that answers people. So the model reads the path once and writes one line, and an AI badge marks it.
Under the line sit three related pages, picked by the model from a ranked list. Then come the doors: start a project, email me, go home. They are the only ask left on the page.
All six are commands in a fake terminal, each with a number. Visitors can still type, but only numbers and commands, and nothing they type leaves the browser.
Each broken URL the model answers gets its line once, and the site keeps it with a hit count. So a URL costs about one model call, and an hourly cap limits the calls.
The hit counts double as my list of broken URLs, and /principles. now redirects to my principles.
The voice survived the cut. The model treats a path with nothing to match as a software project, in one line.
The Version I'd Build First
If I started again, I'd build this version first. The answer was the part people saw, and the conversation I hoped for only added risk and cost. The traffic was already hitting broken URLs. Now each one gets an answer.
Break it yourself: open any page that does not exist on varstatt.com, like
/how-to-bake-bread.

Jurij Tokarski
I run a solo business and produce software. Usually I'm shipping for clients or building for myself. Sometimes I pause to write about it.