My daughter asked me a surprisingly good question: “Why do they call a missing page a 404 error?”
The short answer is that 404 is the code a website sends when it cannot find the page requested. It is part of a shared language that browsers and websites use to report what happened. The number is not the name of a lost file, and it was not taken from a mysterious room.
But her question deserves more than “that is just the code.” Why does a website need a code at all, and why this particular number?
A website and browser are having a conversation
When you open a page, your browser asks a website’s server for a particular address. The server replies with the page and a status code telling the browser how the request went.
Usually, you never notice that code. A successful request commonly receives 200, and the browser shows the page. If the requested page cannot be found, the server can reply with 404 Not Found. The browser then displays an error page, which may include a search box or a way back to the home page.
This is the distinction I would give my daughter: 404 does not mean the whole internet is broken. It usually means the website was reached, but the specific page at that address was not available.
If your internet connection fails before the browser reaches the website, you may see a different kind of message. That is not the same as receiving a 404 response from a server.
Why does the number start with 4?
HTTP status codes use three digits. The first digit tells the browser the broad type of response. Codes beginning with 2 indicate success. Those beginning with 3 concern redirects. Codes beginning with 4 belong to the client error group, while codes beginning with 5 concern server errors.
That explains the first 4 in 404. The complete number identifies the particular response called Not Found.
There is one detail that often gets lost in simplified explanations. The final 04 is not a separate secret message meaning “missing page.” The current HTTP specification says the last two digits do not have their own category meaning. It is the assigned code 404 as a whole that means Not Found.
The phrase “client error” can also sound as though the visitor did something wrong. Sometimes they did type an address incorrectly. But a 404 can just as easily result from a website owner deleting a page or leaving an old link in place. The category describes the response, not who deserves blame.
Was 404 named after a room?
There is a popular story that the code came from a room numbered 404 at CERN, where the Web began. It makes a memorable story, but it is not the origin of the error code. Tim Berners Lee rejected that explanation when asked about it.
The documented explanation is less dramatic: 404 is one of the numbered HTTP responses. An early HTTP specification published in 1996 already lists 404 as Not Found. The current specification continues to use it.
The lesson is useful beyond this one error. A neat story about a technology term can spread widely because it is easy to remember. That does not make it more reliable than the documentation describing how the technology works.
Why might a page return 404?
The simplest cause is a typing mistake. One incorrect letter in a web address can point the browser to a page that does not exist.
A page might also have moved. Someone may have changed an article’s address without updating an old link. The content could have been deleted, or a link on another website could contain a mistake. In each case, the website may receive the request but have nothing available at that exact address.
A 404 does not tell you whether the page will return later. It says the requested page was not found now. If a server knows a page has been removed permanently, there is another response called 410 Gone, although many sites use 404 for missing pages.
A domain can still be active even when one page on it returns 404. The domain is the website’s main address, while each page has its own URL. If you are building a site, our domain registration guide explains how to choose and manage that main address.
What should you do when you see one?
First, check the address for a typing error. If you clicked a link, try the website’s navigation or search function. The article may still exist under a different address. If you encounter other problems, such as a frozen page or failed login, our guide to troubleshooting a bug on Zillexit explains how to check your connection, browser and saved site data. Match the troubleshooting step to the error you actually see.
If it is an important page, you can return to the site’s home page and look for the topic there. You can also tell the site owner about a broken link. You do not normally need to clear all your browser data or assume your device has a problem just because one page returned 404.
A helpful website will make this easy. Its error page should clearly say that the requested page was not found and offer a sensible way to continue browsing.
What should a website owner do?
A real 404 is not automatically a problem to hide. If a page has genuinely been removed and there is no suitable replacement, returning the 404 status is appropriate. Google’s guidance says a missing page may return 404 or 410.
If the page has moved to a clear replacement, a permanent 301 redirect can take visitors to the new address. Redirecting every missing page to the home page is less helpful because it can leave visitors wondering where the information went.
There is also something called a soft 404. That happens when a page tells visitors it cannot be found but the server returns 200, the code for success. The message and the code disagree. A custom error page can look friendly while still returning a genuine 404 status.
The answer I would give my daughter
“404 is the website’s short way of saying, ‘I heard your request, but I cannot find that page.’ The first 4 tells the browser it belongs to a group of request problems. The whole number, 404, means Not Found.”
That answer may not be as exciting as a secret room at CERN. It is more useful, though. The next time we see 404, we will know the website responded. We just need to find the right page.
