add template mechanism for response - only headers at the time of writing