HTTP 3xx Redirect Status Codes

Redirection responses like 301, 302, 307, and 308.

View
StandardDetailedCompact
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## HTTP 3xx Redirect Status Codes
HTTP 300 Multiple Choices
curl -i https://example.com/resource

# Multiple representations are available

HTTP 301 Moved Permanently
curl -I http://example.com/old

# Permanent redirect

HTTP 302 Found
curl -I https://example.com/temp

# Temporary redirect

HTTP 303 See Other
curl -i -X POST https://example.com/form -d 'x=1'

# Redirect to another URL using GET

HTTP 304 Not Modified
curl -I -H 'If-None-Match: "abc123"' https://example.com/app.js

# Cached representation is still valid

HTTP 305 Use Proxy
HTTP/1.1 305 Use Proxy

# Deprecated proxy instruction

HTTP 306 Unused
HTTP/1.1 306

# Reserved / unused code

HTTP 307 Temporary Redirect
curl -i -X POST https://example.com/move-temp -d '{"x":1}'

# Temporary redirect preserving method

HTTP 308 Permanent Redirect
curl -i -X PUT https://example.com/move-permanent -d '{"name":"new"}'

# Permanent redirect preserving method

Recommended next

No recommendations yet.