Handle unexpected responses

Handle various non-dictionary responses from server.