# Alternative host could not be found and error codes

**URL:** <https://devforum.zoom.us/t/alternative-host-could-not-be-found-and-error-codes/53056>\
**Category:** API and Webhooks\
**Created:** [June 24, 2021, 7:36am UTC](https://devforum.zoom.us/t/alternative-host-could-not-be-found-and-error-codes/53056 "2021-06-24T07:36:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![franardone](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/franardone/32/28535_2.png) [@franardone](https://devforum.zoom.us/u/franardone)\
**Post date:** [June 24, 2021, 7:36am UTC](https://devforum.zoom.us/t/alternative-host-could-not-be-found-and-error-codes/53056/1 "2021-06-24T07:36:37Z")

</div>

**Description**  
I am trying to create meetings with alternative hosts.  
Problem is that sometimes one or more alt-hosts do not exists in Zoom. I just want to create the meeting without them and give a message to the end user “Users a@aa.a, b@bb.b could not be set as alt hosts”.

Is there a way to get the invalid users in a structured way (i.e. not screen-scraping the error message) and to get them all at once rather than one by one ?

So far I have met error codes 404/1113 and 400/1115 which do not correspond with what is in the [documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate).  
Are there other codes for invalid users ?  
Is there somewhere a current list of error codes ?

**Which Endpoint/s?**  
POST /users/{userId}/meetings

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. try to create a meeting with 3 invalid and 3 valid alternative\_hosts
2. find which of the 6 alt\_hosts are not valid

Thanks

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [June 25, 2021, 3:30pm UTC](https://devforum.zoom.us/t/alternative-host-could-not-be-found-and-error-codes/53056/2 "2021-06-25T15:30:13Z")

</div>

Hi @franardone,

Thank you for reaching out about this, and good question.

At this time, our API will return the invalid emails/user IDs one by one for the individuals that couldn’t be added as alternative hosts. However, I can definitely appreciate how it would be helpful to receive this error response in a more structured way.

If you’re so inclined, I might recommend submitting this as a feature request here: #feature-requests

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![franardone](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/franardone/32/28535_2.png) [@franardone](https://devforum.zoom.us/u/franardone)\
**Post date:** [June 25, 2021, 3:44pm UTC](https://devforum.zoom.us/t/alternative-host-could-not-be-found-and-error-codes/53056/3 "2021-06-25T15:44:19Z")

</div>

Thanks Will,  
do you have a list of the possible error codes ?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [June 25, 2021, 8:04pm UTC](https://devforum.zoom.us/t/alternative-host-could-not-be-found-and-error-codes/53056/4 "2021-06-25T20:04:20Z")

</div>

Hi @franardone,

Unfortunately we don’t have a reference for all possible Zoom errors, though it’s a great suggestion.

Generally speaking, the 404 error that you will commonly see means that the one of the users specified can’t be found or is invalid.

Having said this, I will see if we can work on adding more specific codes to our documentation.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 26, 2021, 6:05am UTC](https://devforum.zoom.us/t/alternative-host-could-not-be-found-and-error-codes/53056/5 "2021-07-26T06:05:05Z")

</div>

Closed on July 26, 2021, 6:05am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
