Job refers to sins he didn't commit, he also refers t laws, elders, court. Just what sin since the law of god hadn't been given yet? What court, what laws was he referring to. Was it laws of Hammurabi or some other entity?
His friends thought he had sinned against god, but how could he have if no law code existed that had been put out by God?