# Invalid authorization code now returns 401 instead of 403

**URL:** <https://community.auth0.com/t/invalid-authorization-code-now-returns-401-instead-of-403/63174>\
**Category:** Get Help\
**Tags:** login\
**Created:** [May 21, 2021, 4:48pm UTC](https://community.auth0.com/t/invalid-authorization-code-now-returns-401-instead-of-403/63174 "2021-05-21T16:48:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthuston-abacus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/arthuston-abacus/32/12742_2.png) [@arthuston-abacus](https://community.auth0.com/u/arthuston-abacus)\
**Post date:** [May 21, 2021, 4:48pm UTC](https://community.auth0.com/t/invalid-authorization-code-now-returns-401-instead-of-403/63174/1 "2021-05-21T16:48:28Z")

</div>

We are in a private tenant. Starting this week our unit tests started failing. Previously, an invalid authorization code in the oauth/token request was returning 403, and is now returning 401.

401 is more correct, since 403 (Forbidden) is usually missing scopes.

Can someone confirm this change was intentional? When was it rolled out?  
Is it uniform across all tenants (e.g. across all the tenants in our private instance)?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 24, 2021, 4:54pm UTC](https://community.auth0.com/t/invalid-authorization-code-now-returns-401-instead-of-403/63174/3 "2021-05-24T16:54:50Z")

</div>

Hi @arthuston-abacus,

Would you please send me a DM with the name of the account and tenant that has been effected?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 13, 2021, 4:31pm UTC](https://community.auth0.com/t/invalid-authorization-code-now-returns-401-instead-of-403/63174/4 "2021-07-13T16:31:44Z")

</div>

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