Tag: status-codes

  • 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.

  • HTTP 418: The Teapot That Refused to Leave

    HTTP 418: The Teapot That Refused to Leave

    Among the serious, sensible HTTP status codes (200 OK, 301 Moved Permanently, 500 Internal Server Error) sits one that is not serious at all: 418 I’m a teapot.

    Where it came from

    On 1 April 1998, an RFC was published describing the “Hyper Text Coffee Pot Control Protocol”, a completely real-looking technical document for controlling coffee pots over the internet. It was an April Fools’ joke, written in perfectly straight-faced standards language.

    In it, status code 418 means that the server refuses to brew coffee because it is, permanently, a teapot. The document even notes that the response body may be “short and stout”.

    Why it’s still around

    Developers loved it. It ended up in programming languages, frameworks and web servers as an Easter egg. When there was a suggestion in 2017 to remove it from some popular tools, people pushed back hard, and a “Save 418” movement was born.

    In the end, the official HTTP specification reserved 418 so it can’t be given a “real” meaning. The teapot stays.

    Is it useful for anything?

    Some websites actually return 418 to requests they don’t want to deal with, like certain automated bots. So if your monitoring tool ever reports a 418 from your site, it’s worth checking whether a security plugin or firewall is blocking it.

    Source: RFC 2324 – Hyper Text Coffee Pot Control Protocol