Safer error message on unexpected responses