generate response from request