Command (2.4.0+):
$ pm2 serve <path> <port>
For example:
$ pm2 serve /dist 80
By default, it displays 404.html from the serving directory when that happens (NOT configurable).
404.html