use ring provided functions for constructing a response