Error Codes Wiki

HTTP 308 Permanent Redirect — Method Preserved

Warning3xx redirection

Overview

HTTP 308 Permanent Redirect is like 301 but guarantees the request method is preserved.

Key Details

  • Status: 308 Permanent Redirect
  • Category: 3xx Redirection
  • Same as 301 but method MUST be preserved
  • Used for permanent API endpoint moves

Common Causes

  • Permanent redirect preserving POST method
  • API versioning — old endpoint permanently moved
  • Domain migration for APIs
  • URL restructuring for non-GET endpoints

Steps

  1. 1Update all references to use the new URL
  2. 2Follow the redirect with the same method
  3. 3Cache the new location for future requests
  4. 4Use 301 for standard page redirects

Tags

http-status3xx-redirectionhttp-308httpstatus-code

More in 3xx Redirection

Frequently Asked Questions

308 preserves the HTTP method. 301 may change POST to GET.