Authentication or authorization — which is which, and which status code?
Authentication is who you are; authorization is what you may do. Authentication comes first and produces an identity; authorization takes that identity and a resource and returns a yes or no. A missing or invalid credential is 401 — try again with proof. A valid credential without permission is 403 — retrying will never help, and I should not hint at what would.