• Kowowow@lemmy.ca
    link
    fedilink
    arrow-up
    49
    ·
    1 month ago

    Only time I’ve ever heard of this code before was today with a meme about a tea pot

      • impolitecarry@lemmy.wtf
        link
        fedilink
        arrow-up
        65
        ·
        1 month 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…”

  • listless@lemmy.cringecollective.io
    link
    fedilink
    arrow-up
    21
    ·
    1 month 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@herbicide.fallcounty.omg.lol
      link
      fedilink
      arrow-up
      21
      ·
      1 month 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