this post was submitted on 07 Aug 2024
960 points (99.0% liked)

Opossums

3812 readers
322 users here now

It's opossum posting time!

This is an inclusive community

Rules:

Related Communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Bougie_Birdie@lemmy.blahaj.zone 53 points 1 year ago (16 children)

"How are you," is one of those loaded questions I never know how to answer.

Is it part of a greeting? Do you genuinely want to know? Do I lie and keep the peace, or do I open up and bring you down?

Anyway, I'm doing fine, how are you?

[–] jjjalljs@ttrpg.network 10 points 1 year ago (3 children)

It's like a health check. When you hit /api/health/ it probably doesn't report all the details like number of users created today, count of files in the S3 bucket, whatever. It checks that shit's basically working, it heard your request, and now everything is 200 OK.

(No, you can't return a 204 no content in this metaphor because that's not what the client is expecting. If they don't get a 200 back, they're going to think something is wrong and investigate.)

I'm just assuming some of you are like backend developers and this metaphor will make sense to you.

[–] yetAnotherUser@discuss.tchncs.de 2 points 1 year ago (2 children)

How do I return a 403 to the person asking

[–] tetris11@lemmy.ml 3 points 1 year ago

I prefer the 418 response

load more comments (1 replies)
load more comments (1 replies)
load more comments (13 replies)