Figuring out response class hierarchy, error deserialization