More generic responseHook.