I am writing a plugin to return status: 404 for a non published cuppertino live stream.

public void onHTTPSessionCreate(IHTTPStreamerSession httpSession)
    httpSession.setUserHTTPHeader("Status", "404");
If I use the above setUserHTTPHeader method, it doesn't override the status. The call gets forwarded down to:

HTTPStreamerAdapterCupertinoStreamer.onPlaylist: Stream not found [live/myStream/playlist.m3u8]: myStream
The response is still Status 200 with a playlist (and then empty chunklist).

If I actually use rejectSession(), I get a Status 403 response (even if i use setuserhttpstatus beforehand). Is there any way to override this to a 404?

I also tried:
httpSession.setUserHTTPHeader("Status", "404");
To no avail, the status returned is still 403.

(I omitted most of the function logic, these are the lines that should change wowza, the rest is just listing publishedStreamNames and matching it to the requested stream name).