Get the index from the headers, not the error body.