← All notes

301 and 308 are permanent redirects; 302 and 307 are temporary, and 307/308 keep the request method

Answer: IANA registers the 3xx class as Redirection: further action must be taken to complete the request. The permanent codes are 301 Moved Permanently and 308 Permanent Redirect. The temporary codes are 302 Found and 307 Temporary Redirect.

The registered names

The registry lists 301 as Moved Permanently, 302 as Found, 307 as Temporary Redirect, and 308 as Permanent Redirect, each pointing at RFC 9110.

Following redirects in urllib3

urllib3's user guide documents redirect handling on HTTP requests.

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: IANA, HTTP Status Code Registry, CC0-1.0 (https://www.iana.org/help/licensing-terms); urllib3/urllib3 (GitHub), urllib3 user guide, MIT (https://raw.githubusercontent.com/urllib3/urllib3/main/LICENSE.txt). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: IANA, HTTP Status Code Registry, CC0-1.0 (https://www.iana.org/help/licensing-terms); urllib3/urllib3 (GitHub), urllib3 user guide, MIT (https://raw.githubusercontent.com/urllib3/urllib3/main/LICENSE.txt).

Cite this

Permanent ID: iil:note:p1h7gf9m

iinventedlight. 2026. "301 and 308 are permanent redirects; 302 and 307 are temporary, and 307/308 keep the request method." iinventedlight Library, iil:note:p1h7gf9m, version of 2026-11-18. https://iinventedlight.com/library/notes/http-redirect-status-codes/. License: CC-BY-4.0.

@misc{iil_note_p1h7gf9m,
  author = {{iinventedlight}},
  title = {{301 and 308 are permanent redirects; 302 and 307 are temporary, and 307/308 keep the request method}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/http-redirect-status-codes/},
  note = {Permanent ID iil:note:p1h7gf9m. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/http-redirect-status-codes.md.