r/transprogrammer • u/CatarinaCP • May 29 '22
Silly thought experiment with HTTP error codes
What does your http://localhost/gender endpoint return?
These seemed appropriate to me (I'd return 301)
- 300 :: genderfluid
- 301 :: trans w/ stable gender
- 304 :: cis
- 410 :: agender
89
Upvotes
12
u/transham May 29 '22
Depends on the specific requestor and request context.
206 if trans status is not reported 208 in annoyance of repeated corrections 401, 403, or 405, or maybe 417 if accompanied by an improper request or gendered address method.
6
u/TDplay May 29 '22
Personally, I can't choose between 403 or 406.
5
u/ato-de-suteru May 30 '22
For those under 18, 451 Unavailable for Legal Reasons would be an appropriate response.
For myself, 504 Gateway Timeout because my brain still won't give me a definitive answer about where to go from here.
4
u/loomynartylenny May 29 '22
206, probably.
Then if people keep asking, maybe 208, 429, or, if I'm feeling particularly annoyed, 402.
30
u/KryoBright May 29 '22
500
23
u/riasthebestgirl May 29 '22
Mine would return 418
15
u/roboraptor3000 May 29 '22
I just get
ERR_CONNECTION_REFUSED, which apparently corresponds to "genderqueer"7
u/leona1990_000 May 29 '22
402
7
u/everything-narrative May 29 '22
200 OK
(No request body.)
6
u/DarkWiiPlayer enum { male, female } gender = 2; /* TODO: huh? */ May 29 '22
418
5
u/rhajii select * from dual May 30 '22
400 Bad Request
3
u/agb64 May 30 '22
Mine returned NaN? That's... weird...
3
u/Professional-Neat-14 May 30 '22
425: Too Early
3
u/dream6601 May 30 '22
I have a redirect set up, it returns 304, but if I know and trust you it redirects to 301.
3
u/Tina_Belmont She/She++ May 30 '22
ERR_CONNECTION_TIMED_OUT
3
u/sonic_hedgekin May 30 '22
Mine denied Microsoft Edge’s request to connect
2
u/boomshroom May 29 '22
422
2
u/TheFallofTroyFreak May 30 '22
ERR_CONNECTION_REFUSED. Chrome rejected me.
1
u/starfyredragon "Starfyre+dragon":{"Sapphic", "Trans": { "Woman", "Humanist"}} Jun 12 '22
3
1
u/k819799amvrhtcom Jun 22 '23
I think 404 would be genderquestioning, right?
0
u/[deleted] May 30 '22
[deleted] — view deleted comment