A legal code is a written statement of laws which purports to comprehensively cover all laws in a legal system as they existed at the time of writing.