HTTP 308 Permanent Redirect

The resource has permanently moved and the request method must not change.

3xx Redirection

308

Permanent Redirect

Description

The 308 Permanent Redirect status code indicates that the target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs. The 308 status code is similar to 301 Moved Permanently, except that it does not allow changing the request method from POST to GET. This is important for APIs and form submissions where maintaining the original request method through the redirect is critical. Clients with link-editing capabilities ought to automatically re-link references to the target URI to one or more of the new references sent by the server.

When Is It Used?

Used for permanent redirects where the HTTP method must be preserved. Ideal for API versioning where a POST endpoint has been permanently relocated, or when migrating from HTTP to HTTPS while preserving POST/PUT/DELETE request methods.

Example Response

HTTP/1.1 308 Permanent Redirect
Location: https://api.example.com/v3/resource

Look Up Any Status Code

Browse all status codes