Skip to content

3xx Redirection

308 Permanent Redirect

Permanently at another URL; repeat the same request there.

What 308 means

Like 301, but the method and body must be kept. The right permanent redirect for API endpoints.

Common causes

  • An endpoint moved permanently (new domain, version or path).

How to fix it

If you're calling an API

  • Update your code to the new URL.

If you run the server

  • Use 308 instead of 301 when clients send POST, PUT or PATCH.

Should you retry?

Repeat the request at Location, then update your URL.

Example response

HTTP
HTTP/1.1 308 Permanent Redirect
Location: https://api.example.com/v2/items

Related headers: Location.

Defined in: RFC 9110 (originally RFC 7538). 308 is a redirection.

Often confused with

HTTP 308 FAQ

What does HTTP 308 mean?

308 Permanent Redirect: Permanently at another URL; repeat the same request there. Like 301, but the method and body must be kept. The right permanent redirect for API endpoints.

Is 308 a client or server error?

Neither: 308 is a redirection response (3xx). Further action (usually following a new URL) is needed.

How do I fix a 308 error?

Update your code to the new URL.

Should I retry after a 308?

Repeat the request at Location, then update your URL.

Other 3xx status codes

All HTTP status codes