How to get error response for HTTP code?


Hi there, I’m receiving a HTTP 403 error when trying to update status. Documentation mentions that there should be an accompanying error code explaining why, but can’t seem to find that data anywhere in the response.

Receiving properly structured response message on successful tweet, but no data in the error case…

Still really new to Twitter dev, so apologies if I’m missing something obvious. Using an SSL HTTP request from c++ client code.

Thanks in advance!


The error code would usually be in the body of your response.

You’re referring to the Ads API documentation there - if you are using the regular REST API, see the error codes document here.


Hi there, some further investigation revealed it was an issue in the http downloader code… the data was being discarded in the case of an http error. Thanks and sorry for the oversight!