HH-45756 Throw VersionException on IllegalClassException. Add new http response code for version mismatch