Tag: 404

  • No, 404 Was Never a Room at CERN

    No, 404 Was Never a Room at CERN

    There’s a lovely story you’ll find all over the internet: at CERN, the first web servers lived in room 404. When people asked for a file that didn’t exist, staff would say the file couldn’t be found in room 404, and the name stuck.

    It’s a great story. It’s also not true.

    Where 404 actually comes from

    HTTP status codes are grouped by their first digit:

    • 2xx – success (200 OK)
    • 3xx – redirection (301, 302)
    • 4xx – the client asked for something wrong (404 Not Found, 403 Forbidden)
    • 5xx – the server messed up (500, 502, 503)

    So 404 simply means “client error, number 04”. It’s a number from a system, not a room on a floor.

    Fun 404 facts that are true

    • A page can show a “Not Found” message but still return 200 OK. That’s called a soft 404, and it confuses search engines.
    • Browsers request /favicon.ico automatically, so a site without one can collect a lot of 404s without anyone ever clicking a broken link.
    • Custom 404 pages are a great place for a search box and links to your most popular pages. Visitors who land there are lost, not gone.

    Source: Wikipedia – HTTP 404

  • Why Your Favicon Is Filling Your Error Logs

    Why Your Favicon Is Filling Your Error Logs

    Open your server’s error log and look for the most common 404. There’s a good chance it’s not a broken link at all. It’s /favicon.ico.

    Why browsers ask for it

    The favicon is the little icon in the browser tab. Even if your page doesn’t mention one, many browsers will automatically ask for /favicon.ico at the root of your domain, just in case. If it isn’t there, that’s a 404, on almost every first visit.

    Why it matters (a little)

    • It clutters error logs, making real problems harder to spot
    • It can show up as a console error, which makes automated checks noisier
    • Every missing favicon request still hits your server, sometimes all the way to WordPress, which then generates a full 404 page just to say “no”

    Why it matters (a lot, emotionally)

    A browser tab with a blank page icon looks unfinished. It’s like a shop with no sign above the door.

    The fix

    WordPress has a “Site Icon” setting under Appearance → Customize → Site Identity (or in the Site Editor for block themes). Upload a square image of at least 512×512 pixels and WordPress will add the right tags. For extra peace, put a real favicon.ico file in the root folder too.

    And if your monitoring alerts you about it at 3 AM, consider adjusting the alert’s severity.

  • Soft 404s: When Your Error Page Lies About Being Fine

    Soft 404s: When Your Error Page Lies About Being Fine

    Imagine asking someone where the bathroom is, and they say “Yes, absolutely, great question!” and walk away. That’s a soft 404.

    What it is

    When someone visits a page that doesn’t exist, the server should answer with the status code 404 Not Found. A soft 404 happens when the page shows a “not found” message to the visitor, but the server actually answers with 200 OK, which means “here’s your page, everything’s fine”.

    Why it happens

    • Themes or page builders that show a nice custom error page but forget to set the status code
    • Empty category or search pages that technically exist but show nothing
    • Removed products that redirect to the homepage instead of returning a proper error
    • Single-page apps that handle all routing in the browser

    Why it matters

    • Search engines may keep thin or empty pages in their index, or treat real pages with suspicion.
    • Monitoring that only checks status codes will happily report a missing page as healthy.
    • Analytics show visits to “pages” that are really errors.

    How to check

    Open your browser’s developer tools, go to the Network tab, visit a URL you know doesn’t exist (like /this-page-does-not-exist/) and look at the status code of the first request. If it says 200, you’ve found a soft 404.

  • Validator Found 404s in Places We Didn’t Know We Had Places

    Validator Found 404s in Places We Didn’t Know We Had Places

    We were confident. Smug, even. “Our site is small,” we said. “Maybe two broken links, tops.” Then we ran a full crawl.

    It turned out our website had rooms we had never visited. Pages from a 2019 redesign that nobody deleted. A “Summer Sale 2020” landing page still linking to products we stopped selling before the pandemic. A tag archive for the tag “asdf”, containing one post, from someone we cannot identify.

    Our favourite finds

    1. A link in the footer to our “Careers” page. We have never had a careers page.
    2. Our own logo, linking to the homepage of the agency that built our first site. They closed in 2018.
    3. A blog post from 2019 pointing to our very first post, which was apparently so bad that someone deleted it. (Yes, that link is still broken. Leaving it here so the crawler has something to find.)
    4. A “study” we cited about cat videos and productivity. The link to the study now leads nowhere, which, to be fair, is also where the study’s methodology led.

    Why it happens

    Websites don’t break in one dramatic moment. They erode. Every renamed page, every removed product, every slug someone “just quickly fixed” leaves a little link pointing at nothing. Visitors find them before you do, and search engines remember them longer than you’d like.

    The fix is boring and effective: crawl regularly, fix the internal links first (those are 100% yours), and redirect anything that used to matter.