3 ms·
> Also, a friendly reminder to everyone: authentication is not authorization. Sure, but note that 401 Unauthorized is explicitly a failure of authentication. T
by thaumasiotes 7y ago
> Also, a friendly reminder to everyone: authentication is not authorization.
Sure, but note that 401 Unauthorized is explicitly a failure of authentication. The error for an unauthorized request is 403 Forbidden.
- shaggyfrog 7y agoI think this confuses me every time. Really one of the most prominent naming mistakes in tech I can think of.
- thaumasiotes 7y agoYou're free to return HTTP 401 Unauthenticated if you want to. I've never tried, but I tend to suspect it will either be processed purely on the code 401, or displayed to the user somehow.