The Audio Technica M40X headphones are great for playing guitar, dialing in tones, and mixing if needed. They're the flat response version of the M50x model and are slightly less in price also.
I've actually gone through the grueling process of ordering a bunch of pairs of headphones and trying them all out to see which was best for what I was looking for. It's much easier to make a clear decision when you can directly compare them.
I tried out all of the following headphones : Audio Technica M50X, Audio Technica M40X, Sennheiser 280 Pro, Beyerdynamic 770 Pro(80 Ohms), Sony MDR-7506, Shure SRH840, and a few other I can't think of at the moment.
The Audio Technica M40X's sounded the most flat and clear, and sounded clearest when loud especially. They really surprised me since they're one of the more affordable options and I really like being able to replace the cable when it breaks instead of having to replace the headphones lol. They sound great for playing guitar through and can get loud without buzzing and they sound balanced in comparison to a lot of other headphones, especially the M50X's. The M50X's are more bass hyped and treble hyped for music listening and consumers but most people go for those because they're in the same $150 price range where other entry level high end headphones sit at, and they often overlook the M40X because it's the cheaper option. After all, it does make it seem like the cheaper AT headphones would be the consumer model and the more expensive ones would be for music production.
If you give the M40X's a shot, I think you'll be pleasantly suprised. And you might even save some cash in comparison to how much some of the other comparable options are.
And if you're trying to decide between a few different headphones, my best advice would be to narrow it down to 2 or 3 options and then try them all out side by side. That way you can make a sure decision and never have to wonder which is best for you. Hope this helps!!