Criminal offences (that can lead to arrest and imprisonment) are enumerated in the Thai Penal Code (or Criminal Code) as well as numerous other statutes.
The offence of lèse majesté is found in the Criminal Code.