download cab give confusing error to 401 unauthorized error instead of 400 not found


  • HTTPError: 401 Client Error: Unauthorized for url:

    <o:p>the error message is not correct, actually 400 error is the right one for not found resources</o:p>

    Thursday, November 8, 2018 11:18 PM

All replies

  • Hi Baihui Wang,

    The error code 401 is correct for your issue. The code 400 is for bad request, 401 for Unauthorized, 404 for not fund. Since your error is 'Valid authorization Token was not found', it seems more related to 401(specifically for use when authentication is required and has failed or has not yet been provided). 

    Best regards

    Daisy  Tian

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Friday, November 9, 2018 7:59 AM