Make HTTP response valid