added a more informative exception message for a missing response object.