News for hackers. Stuff that matters.
Re:API Practices If You Hate Your Customers by jayd16 on Thursday December 12, 2019 @04:11AM (#21770450)
This is not true. Counterpoint, responses like 404 or 503 Bad Gateway do not come from the destination server. They do not indicate the intended server received your request.
Re:API Practices If You Hate Your Customers by sho on Thursday December 12, 2019 @05:16AM (#21770746)
404 and 500 should come from the destination server. You are correct that 503 would not.
Re:API Practices If You Hate Your Customers by jayd16 on Thursday December 12, 2019 @10:57AM (#21772898)
Hmm are these assumptions valid? Can't a misconfigured load balancer cause a 404? Couldn't a bug in nginx, node or an app server produce a 500 response outside of your control?
Re:API Practices If You Hate Your Customers by sho on Friday December 13, 2019 @02:21PM (#21784489)
I suppose a misconfigured load balancer or nginx instance could return absolutely anything. I think you'd have to be actually maliciously misprogramming it, though, to reach that level of dysfunction!