# How to custom response code when reject session in wowza

**URL:** <https://community.wowza.com/t/how-to-custom-response-code-when-reject-session-in-wowza/53054>\
**Category:** Wowza Streaming Engine\
**Tags:** security\
**Created:** [March 21, 2019, 7:17am UTC](https://community.wowza.com/t/how-to-custom-response-code-when-reject-session-in-wowza/53054 "2019-03-21T07:17:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anh\_Le1](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Anh\_Le1](https://community.wowza.com/u/Anh_Le1)\
**Post date:** [March 21, 2019, 7:17am UTC](https://community.wowza.com/t/how-to-custom-response-code-when-reject-session-in-wowza/53054/1 "2019-03-21T07:17:59Z")

</div>

Hello everyone, I need custom response code for case use reject session, the new response code is whatever number I want to make my application know that it was rejected. Now, I receive 403 response code, but I don’t know that the only code for reject session or something else, so I need custom response code.

Please help me handle this case, thank you.

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)\
**Post date:** [March 21, 2019, 10:26am UTC](https://community.wowza.com/t/how-to-custom-response-code-when-reject-session-in-wowza/53054/2 "2019-03-21T10:26:57Z")

</div>

Hi,

The best you could do is add a custom header (I suspect) but you can not change the return code from 403.

Andrew.

---

<div class="post-metadata">

**Author:** ![Anh\_Le1](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Anh\_Le1](https://community.wowza.com/u/Anh_Le1)\
**Post date:** [March 21, 2019, 2:36pm UTC](https://community.wowza.com/t/how-to-custom-response-code-when-reject-session-in-wowza/53054/3 "2019-03-21T14:36:37Z")

</div>

Thank you, I will research this solution.

Actually, I just need a flag or number response to make sure the requests would rejected by wowza, so the client app will know to show right message.
