this post was submitted on 26 Jun 2023
121 points (92.3% liked)

Programmer Humor

32588 readers
1784 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 22 comments
sorted by: hot top controversial new old
[–] [email protected] 40 points 1 year ago

teapot. its used when the server refuses to brew coffee for the client because it's a teapot, not a coffee pot

[–] Kolossos 26 points 1 year ago* (last edited 1 year ago) (1 children)
[–] owenfromcanada 9 points 1 year ago

The "data" for most coffee URIs contain no caffeine.

Haven't read through that in a long time. Still hoping to get a HTCPCP-compliant coffee pot some day.

[–] [email protected] 14 points 1 year ago* (last edited 1 year ago)

Here is my handle, here is my censored

[–] inspxtr 7 points 1 year ago (3 children)

lol what’s the context here?

[–] Zeus 20 points 1 year ago* (last edited 1 year ago) (3 children)
[–] Dandroid 8 points 1 year ago (1 children)

I learned about this http response code too late. About 4 years ago I was working at a startup and I was the "lead engineer" (aka only engineer) on a project where I had to design and implement an entire REST API. I really wish I would have put this in somewhere, since we weren't doing code review (because it was literally only me).

[–] [email protected] 2 points 1 year ago

Definitely GET /

[–] [email protected] 6 points 1 year ago (1 children)

*unofficial but may as well be official at this point

[–] Zeus 1 points 1 year ago* (last edited 1 year ago)

oh wow you're right. i've seen it in "official-ish" sites so often, but never read the actual rfc docs and it's just "unused"

[–] [email protected] 2 points 1 year ago

It's a HTCPCP Response Code.

[–] [email protected] 6 points 1 year ago

It is what your internet connected Tea kettle responds with when receiving a coffee information request.

[–] MajinBlayze 5 points 1 year ago

Joke built into the http standard

[–] [email protected] 6 points 1 year ago

looks like a brodie enjoyer to me~

[–] [email protected] 6 points 1 year ago
[–] [email protected] 5 points 1 year ago

Teapot. Can't you ~pour tea~ read?

[–] [email protected] 4 points 1 year ago (1 children)

This is just step one of the British path to world programmer domination. Next up. All references to color will now be spelled in the proper colour

[–] [email protected] 1 points 1 year ago

How did you find out about this? It was meant to be top secret.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (1 children)

Bit disappointed that this is not built into the c# http status codes. Was building a mock service and wanted to return something that would never occur in production for things I didn't have definitions for. This seemed like a perfect response but it's not part of the statues enum.

[–] meekah 3 points 1 year ago

what stops you from just passing a 418 int? enums are just fancy ints in c#

[–] betterdeadthanreddit 1 points 1 year ago

https://github.com/joho/7XX-rfc Some additional status codes to cover a wide variety of interesting situations.

[–] camelCaseGuy 1 points 1 year ago

I've used this one in prod a couple of times. Only for internal services and in a very well defined situation. But it's great to be able to use it.

load more comments
view more: next ›