update to the new API for httpapp
use the httpapp Response compat API instead