Y
Hacker News
new
|
ask
|
show
|
jobs
by
jakio
4394 days ago
Still useful for API's with mixed (paid & free) content, so you can keep a uniform URL structure.
1 comments
NathanKP
4394 days ago
This is exactly what I've used the 402 code for. Some API routes are available to all users, but others require paid access. If a freemium user attempts to access API routes behind the "paywall" I return the 402 code.
link