There are times when I want to just launch a quick http server on a basic linux machine with no special software installed.
I run the following:
python3 -m http.server 8080
This returns the directory listing HTML page with response code 200.
Is there a similar one-liner that can return {"OK"}
or some basic json?
It doesn’t have to be python.