build reponse with customized header information