The stock market ended higher on the first trading day of the week, with the Nifty closing above the 23,400 mark.