What is the difference between authentication and authorization?
Authentication verifies who the caller is (a password, token or API key); authorization decides what that caller is allowed to do (roles, permissions, resource ownership).
Unauthenticated requests get 401; authenticated users without permission get 403.