News for hackers. Stuff that matters.
Re:HTTP 402: Payment Required by sk5t on Saturday February 01, 2020 @09:21PM (#22214735)
I agree you probably won't find a lot of systems that will automatically "fix" a 406 or 422, or that have an ordered list of more than one media type they are willing to accept in followup requests. OTOH I do think it's useful to be able to convey and log this type of error in a standard way. 406 can be more or less interesting than 400 retrospectively.

Also, isn't HTTP 503 just about the same as 500 as far as your garden variety client is concerned--even if it's technically plausible some client, somewhere, might want to more aggressively seek out a stale cached result for a 503?

Re:HTTP 402: Payment Required by unilynx on Sunday February 02, 2020 @05:07AM (#22216185)
503 could still be useful if combined with the Retry-After header but I wonder if any generic client code/library uses it in that way.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Re...

Re:HTTP 402: Payment Required by sterlind on Sunday February 02, 2020 @09:19AM (#22217014)
503 is useful for me as a human. If I see a 500 on an internal site I assume they're throwing exceptions; if I see 503 I know the service is gone and I should redeploy.