Handle bad responses from server. Add missing requires.