Skip to content

httpstatus for tweet #45

Answered by noweh
clashen70 asked this question in Q&A
Discussion options

You must be logged in to vote

The variable $response is always an HTTP 200 response. Indeed, in case of an error, the API will return an Exception containing the error message and the relevant HTTP code.
You can see this process here: https://github.com/noweh/twitter-api-v2-php/blob/master/src/AbstractController.php in the function performRequest.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by clashen70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants