The most well know of these is the code 7700. This is used to indicate an emergency of any kind. A pilot will enter this when in an emergency situation - either instructed by ATC after declaring an emergency or without communication if there is no time.