Skip to content
loading...

HTTP Status 401 vs 403

twitter logo github logo ・1 min read  

401 - Unauthorized - Well it should actually say unauthenticated. That is you have not provided/proven your identity or simply put you have not logged in. Can retry with proper credentials to get a 200 OK :D

403 - Forbidden - The server now know very well who you are (logged-in/authenticated) but won't give you what you are asking for because you are not authorized to know about it. No point in retrying unless you get your identity(User account) authorized for this information (that they are keeping from you ;) ).

twitter logo DISCUSS
Classic DEV Post from Sep 27 '18

My solution is the best!

Developers become passionate about their choices a lot of the time, but don't let this feeling limit you on other techniques.

Adarsh.K.Kumar profile image
Developer | Erlang Newbie | Distributed Systems | DevOps | CI/CD | From India

How well do you know your own code?

Sign up (for free)