# Downloading a video from the url returns soft 401 html page

**URL:** <https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133>\
**Category:** API and Webhooks\
**Created:** [October 3, 2019, 7:09pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133 "2019-10-03T19:09:16Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoom-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoom-test/32/2531_2.png) [@zoom-test](https://devforum.zoom.us/u/zoom-test)\
**Post date:** [October 3, 2019, 7:09pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/1 "2019-10-03T19:09:17Z")

</div>

**Description/Error**  
When an account has `Share cloud recordings only with members of my account` enabled and you try to download without an access token, the url returns an html page with response code 200, and some text in the middle of the page that says `No permission (200)`. This is very unhelpful if you are trying to do this in code. The server should return a 401 response, even if it does return an html page. This will at least tell you what is going on if you are running this in code.

Example url: [https://zoom.us/recording/download/](https://zoom.us/recording/download/)\<reallylongstringofnumbers/letters\>

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

1. Get a download url for a meeting where `Share cloud recordings only with members of my account` is enabled on the account.
2. Paste the url into a browser where you are not logged in to zoom.
3. See the html response & status code is 200

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/f/f4b2e0d60434a8aef93858f5799218ac7849dbeb.png)

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/e43197265b8f02220cab68a89ee26b3d23b17fb6.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 3, 2019, 7:44pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/2 "2019-10-03T19:44:43Z")

</div>

Thanks for the post @zoom-test,

We will work on fixing that error page.

In the meantime, to download private / password protected cloud recordings, follow these steps:

> [@BUG downloading cloud recordings with access token set results in an invalid response](https://devforum.zoom.us/t/bug-downloading-cloud-recordings-with-access-token-set-results-in-an-invalid-response/4292/25):
>
> @patricio.giacomino, @matt, @ryan As of now to download a private or password protected cloud recording you must use a [Zoom JWT App Type](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app). Use the download\_url from the [Get Recordings Endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingslist) or the download\_url from the [Recording Completed Webhook](https://marketplace.zoom.us/docs/api-reference/webhook-reference/recording-events/recording-completed) and add the access\_token query param to the end of the url with your JSON Web Token as the value. Example: https://api.zoom.us/recording/download/{{ Download Path }}?access\_token={{ JWT Token }} [19%20PM] The only way to use OAuth to download a …

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zoom-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoom-test/32/2531_2.png) [@zoom-test](https://devforum.zoom.us/u/zoom-test)\
**Post date:** [October 3, 2019, 8:37pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/3 "2019-10-03T20:37:24Z")

</div>

Thanks for the reply @tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 3, 2019, 8:49pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/4 "2019-10-03T20:49:45Z")

</div>

Happy to help! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zoom-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoom-test/32/2531_2.png) [@zoom-test](https://devforum.zoom.us/u/zoom-test)\
**Post date:** [January 8, 2020, 6:40pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/5 "2020-01-08T18:40:14Z")

</div>

@tommy

I came across another instance of this. If cloud downloads are completely disabled or IP restricted then even using the download token you get a soft 401 page as well. The page returns a 200 but shows an error on the page as text saying that downloads are disabled or some other message.

Either of these two (download disabled or IP Address Control set to certain IP’s only):

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3a5bd17a829d3f30ff1835510549ebc94f1c81c9.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 8, 2020, 10:54pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/6 "2020-01-08T22:54:33Z")

</div>

Hey @zoom-test,

This is intended functionality if those two settings are enabled.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zoom-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoom-test/32/2531_2.png) [@zoom-test](https://devforum.zoom.us/u/zoom-test)\
**Post date:** [January 8, 2020, 11:17pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/7 "2020-01-08T23:17:54Z")

</div>

Thanks @tommy for your response.

I understand that is the intended functionality. What is very unhelpful about this (as in my first post on this topic at the top of the page), is that these pages return `response code` 200 which means OK. You are expecting to download an mp4 file but instead get an html webpage, that is not helpful.

Even if it returns the html page, the response code should match the type of response. So if I am unauthorized (ie. lacking valid credentials of any sort) it should return a 401. If I don’t have the proper level of authorization then 403 (forbidden) is appropriate. An example: [https://leastprivilege.com/2014/10/02/401-vs-403/](https://leastprivilege.com/2014/10/02/401-vs-403/)

Since the download links behave this way (return 200 OK for everything) it forces the users of the zoom api to take a lot more extra steps to verify that they actually downloaded a valid mp4 file vs. not. I can’t just trust that it is correct if it gives me a 200 OK.

This is why I posted about this and as of October you said the team will work on fixing the error page.

Thanks!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 9, 2020, 12:44am UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/8 "2020-01-09T00:44:18Z")

</div>

Hey @zoom-test,

I fully agree with you. We are working on improving the status codes. (ZOOM-132992)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 4, 2020, 3:59pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/11 "2020-02-04T15:59:03Z")

</div>

Hey @zoom-test,

Can you please supply the full request url? We are looking into fixing this. Feel free to private message it to me.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zoom-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoom-test/32/2531_2.png) [@zoom-test](https://devforum.zoom.us/u/zoom-test)\
**Post date:** [February 7, 2020, 8:50pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/12 "2020-02-07T20:50:26Z")

</div>

Just sent you an example.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 7, 2020, 10:14pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/13 "2020-02-07T22:14:52Z")

</div>

Thanks @zoom-test!

We will take a look!

-Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 11, 2020, 4:53pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/14 "2020-02-11T16:53:31Z")

</div>

Hey @zoom-test,

After discussion with our engineers, we have added this as a feature request.

In the meantime, I suggest implementing logic to handle the html response when the user is not logged in.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zoom-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoom-test/32/2531_2.png) [@zoom-test](https://devforum.zoom.us/u/zoom-test)\
**Post date:** [February 12, 2020, 8:14pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/15 "2020-02-12T20:14:04Z")

</div>

> [@tommy](#):
>
> In the meantime, I suggest implementing logic to handle the html response when the user is not logged in.

Thanks @tommy. I actually just implemented this the other day. We just download the first 1000 bytes or so and check for an `<html>` tag.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 12, 2020, 10:05pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/16 "2020-02-12T22:05:52Z")

</div>

Great work around! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:24pm UTC](https://devforum.zoom.us/t/downloading-a-video-from-the-url-returns-soft-401-html-page/6133/17 "2020-08-21T19:24:43Z")

</div>

Closed on August 21, 2020, 7:24pm UTC


