Error on posting a reply to topic using APIs

Hi team,

Many time I’m getting response with error message “Something has gone wrong. perhaps this topic was closed or deleted while you were looking at it?” but after 2-3 minutes I can post a reply to same topic without any changes. can anyone help me here?

can anyone please help me out here?