proto.setResponse = function(response) {
  if (!(response instanceof Response)) {
    throw new Error('response must be a Response instance');
  }