In the movie "A Few Good Men," a "Code Red" refers to an unofficial act of discipline in which soldiers are submitted to hazing methods in order to get them to improve their performance, toe the line, or follow procedure. It is essentially a marine-sanctioned assault used as a deterrent against poor performance. The term "Code Red" is not a military term, but rather a term used in the movie.