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

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

HTTP 300 Multiple Choices

Multiple representations are available

textANYhttpstatus-code3xxhttp-300
text
curl -i https://example.com/resource

The server offers multiple possible representations.

HTTP 301 Moved Permanently

Permanent redirect

textANYhttpstatus-code3xxhttp-301
text
curl -I http://example.com/old

Use when a resource’s canonical URL has changed permanently.

HTTP 302 Found

Temporary redirect

textANYhttpstatus-code3xxhttp-302
text
curl -I https://example.com/temp

Common temporary redirect; older behavior can vary with method preservation.

HTTP 303 See Other

Redirect to another URL using GET

textANYhttpstatus-code3xxhttp-303
text
curl -i -X POST https://example.com/form -d 'x=1'

Common after form submission or async job creation pages.

HTTP 304 Not Modified

Cached representation is still valid

textANYhttpstatus-code3xxhttp-304
text
curl -I -H 'If-None-Match: "abc123"' https://example.com/app.js

Returned for conditional requests using validators like `ETag` or `If-Modified-Since`.

HTTP 305 Use Proxy

Deprecated proxy instruction

textANYhttpstatus-code3xxhttp-305
text
HTTP/1.1 305 Use Proxy

Historical code; generally not used in modern applications.

HTTP 306 Unused

Reserved / unused code

textANYhttpstatus-code3xxhttp-306
text
HTTP/1.1 306

Reserved and not used in modern HTTP practice.

HTTP 307 Temporary Redirect

Temporary redirect preserving method

textANYhttpstatus-code3xxhttp-307
text
curl -i -X POST https://example.com/move-temp -d '{"x":1}'

Unlike many 302 implementations, the method and body are meant to be preserved.

HTTP 308 Permanent Redirect

Permanent redirect preserving method

textANYhttpstatus-code3xxhttp-308
text
curl -i -X PUT https://example.com/move-permanent -d '{"name":"new"}'

Like 301, but preserves the request method and body.

Recommended next

No recommendations yet.