Some utilities for http response generation