More useful error messages in the case of unexpected server responses.