The willful threatening to commit a crime which will result in death or great bodily injury to another person, with the specific intent that the statement, made verbally, in writing, or by means of an electronic communication device, is to be taken as a threat, even if there is no intent of actually carrying it out, which, on its face and under the circumstances in which it is made, is so unequivocal, unconditional, immediate, and specific as to convey to the person threatened, a gravity of purpose and immediate prospect of execution of the threat, and thereby causes that person reasonably to be in sustained fear for his or her own safety or for his or her immediate family’s safety. CPC 422
Under this definition, you could be charged with Criminal Threats/Terrorist Threats if you threaten to kill or injure another.
Criminal Threats/Terrorist Threats may be charged as either a misdemeanor or a felony. The maximum punishment for a misdemeanor is one-year in jail. Felony Criminal Threats/Terrorist Threats however is punishable by imprisonment for 16 months, two years, or three years in prison. A first time offender however will be granted probation if he or she admits guilt at an early stage of the proceedings.