ResponseMaker class: builds a response based on the request.