Deliberately an enum rather than a string: a shell must be able to tell a
false positive (bytes that merely looked like a header — routine, not
a loss) from a real object that would not parse (a loss the operator
may need to act on). A single prose sentence reads the same for both and
makes the routine case as alarming as the serious one.
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The bytes at that offset did not parse as an object under any of
recovery’s lenient policies. Usually binary data inside a stream that
happens to spell N G obj; occasionally a genuinely corrupt object,
which is the case worth surfacing.