Hacker News new | ask | show | jobs
by somada141 2439 days ago
Hm a 403 when one runs out of credit can be misleading as one would expect that for an authorization error. You may want to consider the `402 Payment Required` status code instead which seems to be used by some big players [0].

Best of luck with your launch!

[0] https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#402

2 comments

I confirm we updated the API to return a 402 error message when the user reached the limit of the her pricing tier. Thanks again for this suggestion.
This is a great suggestion! We will definitely consider it! Thanks for your support.