What Is HTTP 308 Permanent Redirect?
HTTP 308 Permanent Redirect explained, and what it means when you see it in CI/CD and deployments.
HTTP 308 is a permanent redirect that preserves the HTTP method and body.
What it means
A 308 is the method-preserving counterpart of 301. It tells clients to use the new URL permanently while keeping POST as POST.
When you see it in CI/CD
CI deploy scripts hitting an API that has permanently moved get the method preserved with a 308, avoiding the GET-downgrade pitfall of 301.
Key takeaways
- 308 is a permanent redirect.
- It preserves the method.
- Method-safe version of 301.
Related guides
What Is HTTP 301 Moved Permanently?HTTP 301 Moved Permanently is a permanent redirect. Learn how it affects API calls and CI checks.
What Is HTTP 307 Temporary Redirect?HTTP 307 Temporary Redirect preserves the request method. Learn how it differs from 302.
What Is a REST API? Resource-Oriented Web APIsA REST API exposes resources over HTTP using standard methods and status codes. Learn what REST is and how CI…