# Status errors for HLS Live Streaming

**URL:** <https://community.wowza.com/t/status-errors-for-hls-live-streaming/322>\
**Category:** Wowza Streaming Engine\
**Created:** [February 5, 2014, 6:56pm UTC](https://community.wowza.com/t/status-errors-for-hls-live-streaming/322 "2014-02-05T18:56:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [February 5, 2014, 6:56pm UTC](https://community.wowza.com/t/status-errors-for-hls-live-streaming/322/1 "2014-02-05T18:56:01Z")

</div>

Hi,

I came here because something is bothering me for a while with HLS.

Sometimes, I need to refused some viewers from the live stream (bad referer, ip, …) however there we have an issue telling the client in a nice way they have been disconnected

For RTMP customers, I’m already using :

```auto
sendStreamOnStatusError(stream, "NetStream.Play.Failed", "Too many viewer");
client.shutdownClient();

```

But for HLS, I only found :

```auto
httpCupertinoStreamingSession.rejectSession();

```

This function works great to refuse connections, but I don’t find any way to send informations/status with it.

What is the recommendation in a case like this?

Thanks

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [February 12, 2014, 10:13am UTC](https://community.wowza.com/t/status-errors-for-hls-live-streaming/322/2 "2014-02-12T10:13:31Z")

</div>

To achieve a similar effect to sendStreamOnStatusError, you’d have to redirect to an error page.
