I have Laravel CMS and I am confusing with HTTP responses.
If the logged user is not admin (should I use 401). If the logged user not have privilege to open specific page (should I use 403).
I have Laravel CMS and I am confusing with HTTP responses.
If the logged user is not admin (should I use 401). If the logged user not have privilege to open specific page (should I use 403).
You got it correct. Those are the appropriate status codes for each of those situations.