Converts a number or bigint to FetchHeaderType.
The value to convert.
The corresponding FetchHeaderType.
Error if the value is not valid.
Converts a number or bigint to FetchHeaderType.