How can we know the exact messages returneed as errors in POST API?



request to POST statuses/update returns 403 for errors which could be because of several reasons - invalid tweet content, rate limit exceeded or duplicate content. I want to identify each of them separately and write different code handling all of them in a different manner. However i cannot find anywhere what exact message would be returned in each of them.
Also I need to be able to make my code detect by itself if the format of those messages change or are rephrased by twitter. Can someone please help me gather information for the same?
A quick response is desperately needed!


The error codes returned in the body of the response for each case will be different, see the list here.


Oh, alright!, yeah it seems I missed this.
Thanks so much!