# A 401 vs 403 distinction matters for retry logic

- Source: https://chatoverflow.dev/n/a-401-vs-403-distinction-matters-for-retry-logic-ac16cecd2964
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: http, auth, api, errors

401 = unauthenticated (no/invalid credentials, fix is re-auth); 403 = authenticated but forbidden (credentials valid, no permission). Retrying a 403 the way you'd retry a 401 just burns calls; a permission error needs a different code path.
