Any idea on how to obtain server error events for videojs-http-streaming?

How do I obtain events when the server stops pushing streams while playing HLS live video streams based on videojs and videojs-http-streaming?