Category: Interesting Facts

Real, checkable facts about the web and how it works (and fails).

  • 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

  • Your Server Has a Bedtime: The Year 2038 Problem

    Your Server Has a Bedtime: The Year 2038 Problem

    You’ve probably heard of the Y2K bug. Meet its younger sibling: the Year 2038 problem.

    Counting seconds

    Many computer systems store time as “the number of seconds since 1 January 1970”, known as Unix time. On older systems, that number is stored in a signed 32-bit integer, which can only count up to 2,147,483,647.

    That number of seconds runs out at 03:14:07 UTC on 19 January 2038. One second later, the counter overflows and wraps around to a large negative number, which those systems interpret as a date in December 1901.

    Does this affect websites?

    Mostly, modern systems have moved to 64-bit time, which can count far beyond the age of the universe. But old software, old databases, embedded devices and some file formats still use 32-bit time. And dates in the future can trigger the problem early: anything calculating “30 years from now” has been able to bump into 2038 for a while already.

    Things that might care

    • Expiry dates far in the future (cookies, certificates, subscriptions)
    • Old PHP or database setups on 32-bit systems
    • Devices in the “internet of things” that nobody will ever update

    The good news: there are still years to fix it. The bad news: that’s exactly what everyone said about Y2K in 1988.

    Source: Wikipedia – Year 2038 problem

  • The Day a Typo Took Down a Chunk of the Internet

    The Day a Typo Took Down a Chunk of the Internet

    On 28 February 2017, a huge number of websites and apps suddenly started misbehaving. Images wouldn’t load. Uploads failed. Some sites went fully offline. The cause turned out to be one of the most relatable mistakes in tech history: a typo.

    What happened

    An engineer at Amazon Web Services was debugging a problem with the billing system for S3, Amazon’s file storage service, in its Northern Virginia region. Following an established playbook, they ran a command meant to remove a small number of servers.

    One of the inputs to the command was entered incorrectly, and a much larger set of servers was removed, including ones that other important parts of S3 depended on. Restarting those systems took hours.

    The ironic part

    Amazon’s own status dashboard, the page meant to tell everyone what was going on, also depended on S3. So for a while, it couldn’t be updated to show the problem.

    Lessons for everyone else

    • Your website depends on more services than you think: storage, CDNs, fonts, payment providers, analytics
    • If an important file lives somewhere else and that somewhere goes down, your site looks broken even if your server is fine
    • Your status page should not live on the same infrastructure as the thing it’s reporting on
    • Monitoring from the outside sees what visitors see, including problems that aren’t “yours”

    Source: AWS – Summary of the Amazon S3 Service Disruption

  • Someone Once Owned google.com for One Minute

    Someone Once Owned google.com for One Minute

    Late one night in September 2015, Sanmay Ved, a former Google employee, was playing around with Google’s own domain registration service. He typed in “google.com”, mostly as a joke.

    It said the domain was available.

    The $12 purchase

    He clicked buy. His card was charged $12. For about a minute, he had access to the controls for the most visited domain on the internet, and he started getting the admin notifications that come with owning it.

    Then the order was cancelled and he got his money back. Google fixed the glitch.

    The reward

    Google gave him a reward for reporting it. The first amount was $6,006.13, which, if you squint, spells “Google” in numbers. When he said he’d donate it to charity, Google doubled it.

    Why this matters for normal websites

    If it can happen to google.com, the “what if my domain expires or gets taken” question isn’t paranoid. It’s just sensible. Keep auto-renew on, keep the payment card up to date, keep the contact email one that a real person reads, and watch the expiry date from outside.

    Source: CNBC

  • 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

  • The First Website Ever Is Still Online (Sort Of)

    The First Website Ever Is Still Online (Sort Of)

    Every website you’ve ever visited has a common ancestor, and it’s surprisingly modest.

    A website about websites

    The first website was built by Tim Berners-Lee at CERN, the physics laboratory near Geneva. It ran on his NeXT computer, which served as the world’s first web server, and it went live at CERN at the end of 1990 before the web was opened up to the public in 1991.

    Its subject was the World Wide Web project itself: what the web was, how to use it, and how to set up your own server. It had no images, no fonts, no cookie banners. Just text and blue links.

    Lost and found

    The original pages changed over the years, and eventually the first address no longer showed the original site. In 2013, CERN started a project to restore that first website, using the oldest copy they could find, and today you can browse a recreation of it at info.cern.ch.

    Fun details

    • The NeXT computer that served it is still at CERN.
    • Early visitors often browsed using a simple text-only “line-mode” browser, because most people didn’t have fancy graphical computers.
    • That first website had better uptime than many modern ones. It had no plugins to update.

    Source: CERN – Where the web was born