Allow response type to be specified in config