Skip to main content
HTTP/3xx (Redirection)

308 Permanent Redirect

The request and all future requests should be repeated using another URI, strictly preserving the HTTP method.

❓ Why does this happen?

Modern permanent redirect that prevents clients from downgrading POST to GET.

✅ How to fix it

Update client links to the new URL specified in the Location header.

Return or handle 308 in your stack

// app/old-path/route.ts
export function GET(request: Request) {
  return Response.redirect(new URL("/new-path", request.url), 308);
}

Live 308 mock endpoint

Point your app, tests, or retry logic at this free public URL to reproduce a real 308 response (CORS enabled, optional ?delay=ms up to 5000).

https://castov.com/api/mock/308

308 vs similar status codes

Frequently Asked Questions

What does HTTP Status 308 mean?
The request and all future requests should be repeated using another URI, strictly preserving the HTTP method.
Why am I getting a 308 status code?
Modern permanent redirect that prevents clients from downgrading POST to GET.
How do I fix a 308 Permanent Redirect error?
Update client links to the new URL specified in the Location header.
What is the difference between 308 Permanent Redirect and 301 Moved Permanently?
Both are permanent. 301 lets clients change POST to GET when following the redirect; 308 strictly preserves the method and body.
How can I test how my app handles a 308 response?
Send a request to https://castov.com/api/mock/308 — it returns a real 308 Permanent Redirect response with CORS enabled. Add ?delay=2000 to simulate a slow server.

Other 3xx status codes

Browse the full HTTP status codes directory or troubleshoot terminal errors in the Error Fix Encyclopedia.