HTTP Status Codes

Every status code in plain English. Type a number or a word to filter.

The five classes

Frequently asked questions

401 vs 403 — which do I return?

401 when the user isn't authenticated (missing/invalid credentials — "who are you?"); 403 when they're authenticated but not allowed ("I know who you are, and no"). Some APIs return 404 instead of 403 to avoid confirming a resource exists.

Is 418 real?

Yes — "I'm a teapot" comes from a 1998 April Fools RFC (HTCPCP). It's a joke code, but so beloved that attempts to retire it failed; many frameworks still ship it.

Last updated: 2026-07-13