# AMLST generate 404 when Medialist is empty

**URL:** https://community.wowza.com/t/amlst-generate-404-when-medialist-is-empty/48661
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [May 4, 2017, 2:05pm UTC](https://community.wowza.com/t/amlst-generate-404-when-medialist-is-empty/48661 "2017-05-04T14:05:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Stephane\_Menier](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Stephane\_Menier](https://community.wowza.com/u/Stephane_Menier)
#### Post date: [May 4, 2017, 2:05pm UTC](https://community.wowza.com/t/amlst-generate-404-when-medialist-is-empty/48661/1 "2017-05-04T14:05:45Z")

</div>

Hi,

We are using a custom AMLST module to generate MultiBitrate Stream.  
Something similar to

[https://www.wowza.com/docs/how-to-use-java-api-calls-to-resolve-smil-file-requests](https://www.wowza.com/docs/how-to-use-java-api-calls-to-resolve-smil-file-requests)

If the medialist return by the module is empty, Wowza will return an empty m3u8.

Is there a way to get a 404 HTTP Status and to override cache header set in the Vhost configuration ?

A 404 Error will prevent proxy server to cache the empty m3u8.

Thanks for your help.

---

<div class="post-metadata">

### Author: ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)
#### Post date: [May 11, 2017, 6:29am UTC](https://community.wowza.com/t/amlst-generate-404-when-medialist-is-empty/48661/2 "2017-05-11T06:29:27Z")

</div>

Hi Stephane,

This has been addressed in ticket #228959, but I am posting the response here as well for others.

The following property should force Wowza to respond with an error 404 to HLS playback requests where the medialist returned by IMediaListProvider is null.

Under Root/Application/HTTPStreamer properties container, add:

```auto
    <Property>
        <Name>cupertinoAllowNotFoundOnEmptyMediaList</Name>
        <Value>true</Value>
        <Type>Boolean</Type>
    </Property>

```

Michelle

---

<div class="post-metadata">

### Author: ![huy\_vo\_quang](https://avatars.discourse-cdn.com/v4/letter/h/bc8723/32.png) [@huy\_vo\_quang](https://community.wowza.com/u/huy_vo_quang)
#### Post date: [May 24, 2017, 7:45am UTC](https://community.wowza.com/t/amlst-generate-404-when-medialist-is-empty/48661/3 "2017-05-24T07:45:28Z")

</div>

Is param “cupertinoAllowNotFoundOnEmptyMediaList” work with custom AMLST module  
in live stream app?

And what wowza version will work with this param?

---

<div class="post-metadata">

### Author: ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)
#### Post date: [June 7, 2017, 12:46am UTC](https://community.wowza.com/t/amlst-generate-404-when-medialist-is-empty/48661/4 "2017-06-07T00:46:40Z")

</div>

Yes, it should work with AMLST modules as well. I have tested this on a 4.6.x and 4.7.x.
