1121
submitted 1 year ago by Two9A@lemmy.world to c/asklemmy@lemmy.ml

Let's get the AMAs kicked off on Lemmy, shall we.

Almost ten years ago now, I wrote RFC 7168, "Hypertext Coffeepot Control Protocol for Tea Efflux Appliances" which extends HTCPCP to handle tea brewing. Both Coffeepot Control Protocol and the tea-brewing extension are joke Internet Standards, and were released on Apr 1st (1998 and 2014). You may be familiar with HTTP error 418, "I'm a teapot"; this comes from the 1998 standard.

I'm giving a talk on the history of HTTP and HTCPCP at the WeAreDevelopers World Congress in Berlin later this month, and I need an FAQ section; AMA about the Internet and HTTP. Let's try this out!

you are viewing a single comment's thread
view the rest of the comments
[-] JusticeForPorygon@lemmy.world 31 points 1 year ago

I need an ELI5 for this I'm a stupid Gen Z

[-] Xylight@lemmy.xylight.dev 59 points 1 year ago

You know sometimes you click on a link and it says "404 not found?" 404 is an HTTP status code. basically when you click on a website your browser makes an "HTTP request" to that website to get the web page, and it'll respond with a code to tell the status. 2xx is ideal, since it means OK. 4xx means it's an error on your end. (404, you requested a nonexistent link.) 5xx means it's a server error.

This person made 418, a status code for "I'm a teapot". It was intended as an april fools joke but it's used sometimes for when the server doesn't want to handle a request from the client.

[-] mmagod@lemmy.zip 14 points 1 year ago

I need one too and I'm a stupid Gen Y

[-] Flemmy@lemmy.world 31 points 1 year ago

As a late millennial and a programmer, I've got you.

So when you request a web page, before anything else, the server gives you a 3 digit status code.

100s means you asked for metadata

200s mean it went ok

300s means you need to go somewhere else (like for login, or because we moved things around)

400s mean you messed up

500s mean I messed up

So this is in the 400s. Each specific code means something - you've probably seen 404, which means you asked for a page that isn't there. And maybe 405, which means you're not allowed to see this

418 means you asked for coffee, but I'm a teapot

[-] mmagod@lemmy.zip 6 points 1 year ago

I can't say enough how amazing your explanation was. Im not a programmer but I have worked on websites (self taught) and I never knew this. Thank you!

this post was submitted on 06 Jul 2023
1121 points (98.5% liked)

Asklemmy

44145 readers
1096 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS