danielwerg / r6api.js

🍫 Node.js wrapper around Rainbow Six Siege APIs
https://npm.im/r6api.js
MIT License
111 stars 19 forks source link

Add status code in fetch error #66

Closed hibanka closed 3 years ago

hibanka commented 3 years ago

429 Too Many Requests

instead of

Too Many Requests

hibanka commented 3 years ago

Although I think it would be better to make a separate class for errors and return the status in a 'status' property. And do it for both error cases