throw an Exception if header is not found