Yes thank you, I realised afterward that it was in fact the media upload that was problematic, and not the status/update.
In addition to a more explicit error message (and/or documented error codes), it would be very helpful to return this error when uploading the media instead of raising it only when trying to attach the media to a tweet.
Thank you for your help,
Arthur