By definition, the codified will of the people is the letter of the law. The "spirit of the law" is what politicians kind of want to happen, but never actually passed a law for.
Also, the "will of the people" is a nonsensical concept by Arrow's Impossibility Theorem.
https://en.wikipedia.org/wiki/Arrow%27s_impossibility_theore...