desmondmorris / node-twitter

Client library for the Twitter REST and Streaming API's.
https://www.npmjs.com/package/twitter
MIT License
1.27k stars 237 forks source link

Please add the Status Code to the thrown error #336

Closed justinmchase closed 3 years ago

justinmchase commented 4 years ago

Here: https://github.com/desmondmorris/node-twitter/blob/master/lib/twitter.js#L177

It would be really nice if the status code was attached to the error object not just put into the message as a string.