jsdelivr / globalping

A global network of probes to run network tests like ping, traceroute and DNS resolve
https://www.jsdelivr.com/globalping
248 stars 31 forks source link

Always send X-Credits-Required on 429 errors #530

Closed MartinKolarik closed 2 months ago

MartinKolarik commented 2 months ago

To make it easier for clients to generate clear messages for users.

Note - X-Credits-Required is currently not returned by the API for requests without a token. This will be changed. Any missing header should be treated as 0.

From https://github.com/jsdelivr/globalping-cli/issues/107