Toolman

HTTP 308 — Permanent Redirect

3xx Redirection

What it means

Like 301, but the method and body are preserved.

What to do about it

Use for permanent redirects of non-GET endpoints — an API that moved, for example.

Where it sits

308 belongs to the 3xx family: Further action is needed to complete the request — usually following a redirect.

HTTP/1.1 308 Permanent Redirect

Checking it yourself

# see the status code and headers only
curl -sI https://example.com/path

# follow redirects and print each hop
curl -sIL -o /dev/null -w "%{http_code} %{url_effective}\n" https://example.com/path

# JavaScript
const r = await fetch(url);
console.log(r.status, r.statusText);

Other 3xx codes

All HTTP status codes