Get events returns a sync token error with status 200 instead of 412

I tried to get my events from the Api using unirest library in java but I’m getting a response body with an error message and a status 200.