Re:HTTP 402: Payment Required
by OJFord on Saturday February 01, 2020 @09:55PM
(#22214850)
Actually I'm not sure that is interesting - from Shopify's perspective it is payment-required. If the shop's dodgy JS sent a malformed request body, you'd get a 400 - even though the bad-request relationship is between the shop and Shopify.
[ Parent
| on HN ]
It does violate the contract of 4xx errors though, that a 4xx indicates a client error. If the store hasn't paid up, that's not the clients fault nor can they fix it. It should be some kind of 5xx for customers.
Re:HTTP 402: Payment Required
by krainboltgreene on Sunday February 02, 2020 @06:13AM
(#22216416)
If an admin disables your account by accident, that's still a 401. Just because the client can't change something, doesn't mean it doesn't fit along with the 4XX brand.