Octoprint API: command output

Hello,

I am building a custom web interface using the JS API.
I can successfully use it but i can't find how to get the reponse of the /api/printer/command service.
For example i want to get the result of the M420 V gcode (Bilinear Leveling Grid detail)
From the doc, it only can return a 204 reponse ( or a jQuery Promise if using the JavaScript Client Library)
Thanks for help!

Avi

Because commands are queued in OctoPrint I don't think you'll get what you're asking for. The only thing I think that comes close is the push updates.

https://docs.octoprint.org/en/master/api/push.html