• @impolitecarry@lemmy.wtf
        link
        fedilink
        6522 days ago

        So, the web works on http (and https). When you ask for some content (“make a request”) on the web, the place you asked (“the server”) replies with the best content they can find for what you asked, along with a short code as a hint of what the reply contains (“the response”). You may be familiar with the response code 404, which signifies the thing you asked for could not be found, and the actual reply usually contains a cute error message saying the same thing. You can think of the response content as the part of the response meant for humans, and the response code as the part of the response meant for other computers.

        Response code 418 is a joke response code put into the standard (it was an RFC document for the 1St of April for some year). It is meant to signify that the server cannot really fulfill your request, because in reality, you aren’t talking to a real server, but a teapot some nerd managed to hook up to the internet (this was before the era of IoT was upon us and every appliance wanted to be smart and connect to the internet.)

        So, it can be viewed as the “sir this is a Wendy’s” joke counterpart of the http response codes.

        Me: “Hey computer, go find me the post with most activity in the past 6 hours.” Server response: “error 418. Sir, this is a teapot…”

          • X
            link
            fedilink
            English
            1522 days ago

            Right here with you, pretty hilarious return code.

        • [object Object]
          link
          fedilink
          12
          edit-2
          22 days ago

          this was before the era of IoT

          TBF remotely-controlled coffeemakers were a dream of nerds since the eighties if not earlier. I remember reading a fascinated account of some dude who kludged up such remote control in the office kitchen, such that the couple minutes it took him to walk there from his office was the exact time it took the coffee to brew. Of course, this is an everyday thing now.

    • JackOP
      link
      fedilink
      122 days ago

      I think that made think about it too

  • @listless
    link
    20
    edit-2
    22 days ago

    Other niche HTTP codes:

    420: Enhance Your Calm (used by twitter to rate limit clients, reference to cannabis culture)

    451: Unavailable due to legal reasons (now an official code! reference to Ray Bradbury’s Fahrenheit 451 in which books are illegal)

    • Kristell
      link
      fedilink
      2122 days ago

      It’s an April fool’s joke from… 50 ish years ago. Hypertext teapot control protocol. Status code 418 was supposed to be what happens if you try to get it to brew a cup of coffee. It cannot brew coffee, it is a teapot.

      “This is a Wendy’s” is a response to wildly off-topic remarks, similar in case to 418

      • [object Object]
        link
        fedilink
        1122 days ago

        You have your sense of time a bit out of whack.

        Development of HTTP was initiated in 1989.

        • tiredofsametab
          link
          fedilink
          722 days ago

          Which was clearly like 12 or so years ago, right? … right? crumbles to dust

        • Kristell
          link
          fedilink
          3
          edit-2
          22 days ago

          That was 100% me transposing the numbers xD I thought it said 1989 for the joke, it was 1998. Also I did the math wrong and said 50 instead of 40, two fuck-ups for the price of one!