Constructor for the response object