Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 7 months agothis is what peak web traffic looks likelemmy.zipexternal-linkmessage-square27fedilinkarrow-up1449arrow-down14
arrow-up1445arrow-down1external-linkthis is what peak web traffic looks likelemmy.zipMaven (famous)@lemmy.zip to Programmer Humor@programming.dev · 7 months agomessage-square27fedilink
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up2·6 months agoWhy not respond with the appropriate HTTP Code, and then also put the same code in the json?
minus-squarejballs@sh.itjust.workslinkfedilinkEnglisharrow-up2·6 months agoThat would have been fine for me too. I don’t own the API, so I can only speak from a consumer perspective in saying: I don’t want a HTTP 200 if my request didn’t succeed.
Why not respond with the appropriate HTTP Code, and then also put the same code in the json?
That would have been fine for me too. I don’t own the API, so I can only speak from a consumer perspective in saying: I don’t want a HTTP 200 if my request didn’t succeed.