Exceptions¶
Exceptions are available directly in the tweepy module, which means
tweepy.errors itself does not need to be imported. For example,
tweepy.errors.TweepyException is available as
tweepy.TweepyException.
- exception tweepy.errors.HTTPException(response)¶
Bases:
tweepy.errors.TweepyExceptionException raised when an HTTP request fails
- exception tweepy.errors.BadRequest(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 400 HTTP status code
- exception tweepy.errors.Unauthorized(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 401 HTTP status code
- exception tweepy.errors.Forbidden(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 403 HTTP status code
- exception tweepy.errors.NotFound(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 404 HTTP status code
- exception tweepy.errors.TooManyRequests(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 429 HTTP status code
- exception tweepy.errors.TwitterServerError(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 5xx HTTP status code