I can't remember what gcode I use to check on my endstop states?

I can’t remember what gcode I use to check on my endstop states? You know, to see what endstops are triggered.

I was thinking it was M114 but tried M119 and it worked.