Elasticsearch check index lock(read-only) before insert data

Hi,

Please help me someone how to check particular index in read-only mode.
I use to get continues index ( [
FORBIDDEN/12/index read-only / allow delete (api)]](FORBIDDEN/12/index read-only / allow delete (api)])) need to know like before insert data how to check index in read-only mode.

Thanks,
Veera

That is often a sign that you are running out of disk space and have exceeded the flood watermark.

Hi Christian,

Yes correct is there any API available to check index status.