What does HTTP status code 308 mean?
The 308 Permanent Redirect status code indicates that the resource has been permanently moved to a new URI and the client must preserve the HTTP method used in the original request.
When to use it in APIs
Use when permanently renaming write endpoints (e.g., changing /v1/create to /v1/register), preventing clients from dropping their payload.
How it compares to other codes
- 301 Moved Permanently: Allows method switching (POST to GET), while 308 preserves the original method.