add header, status code and html tags