Parse the content type from the headers

const parserType = parseContentType(headers);
console.log(parserType); // text

If the content type is not supported