topic
Verified 2026-09-18HTTP Redirects
Redirect responses tell a client to use another target or retrieve another representation.
Use 301 or 308 for permanent moves, 302 or 307 for temporary moves, and 303 for a POST-redirect-GET result. Preserve the method with 307 and 308.
httpredirectsrouting
Reference (http)
HTTP/1.1 303 See Other Location: /jobs/42
Use 301 or 308 for permanent moves, 302 or 307 for temporary moves, and 303 for a POST-redirect-GET result. Preserve the method with 307 and 308.
Common mistakes
- Using a redirect that changes POST to GET when the request method and body must be preserved.
Sources