Added a method to format the response string using a va_list.