dynamic HttpRestResponse generation