Section: Common Web Error Scenarios

401 vs 403

text
text
401 = not authenticated / invalid credentials
403 = authenticated but forbidden
Explanation

A very common distinction in API and admin-console debugging. `401` often includes `WWW-Authenticate`; `403` is about permission refusal.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Common Web Error Scenarios
404 vs 410
Missing resource versus intentionally removed resource.
OpenIn sheettextsame section
301 vs 302 vs 307 vs 308
Choose the right redirect semantics.
OpenIn sheettextsame section
502 vs 503 vs 504
Gateway and availability failures.
OpenIn sheettextsame section
Cache validation codes
Conditional request and cache-related statuses.
OpenIn sheettextsame section
Print only the status code
Useful for scripts and health checks.
Print redirect target
Show the redirect location without fully following it.