What if it's only
"Document metadata
=== This is a header"
And then it ends. Maybe because someone copy-pasted wrong or pushed the button too early. Or maybe they just want to create an index and update it later, with the relevant e tags.
Then it would only generate a 30040, right? Or would it return an error? Or would they need to confirm that it should only generate a 30040?