EXCEPTION IN DYNAMIC HEADER GENERATION