How to figure out from explain response that index in failed state and need retry?

Hi,

Trying to figure out how the explain response will be look like when an index is in failed state because of any reason like FORBIDDEN read-only. and by which field i will get to know index need an retry. official documentation does not have enough information for explain api.

Thanks