Elasticsearch to get the content length

Hi all,
I was getting back the error saying "content length is too long for configured buffer limit (104857600)" in production environment.
But when I try to reproduce the issue, it is not reproducible in lower environment. Even though the entity that i want to get back should be larger than 100MB, it still works fine.
Is there any way I can check the content length? I am using rest high level client, so i cannot use getEntity() function to check.
Thank you!