HTTP

HTTP 308 Permanent Redirect vs 408 Request Timeout

HTTP 308 (Permanent Redirect) is a 3xx Redirection response, while 408 (Request Timeout) is a 4xx Client Error response. 308 indicates that the resource has been permanently moved. Like 301, but guarantees the HTTP method will NOT be changed. In contrast, 408 means that the server timed out waiting for the request. The client did not produce a request within the time the server was prepared to wait.

Description

The resource has been permanently moved. Like 301, but guarantees the HTTP method will NOT be changed.

When You See It

For permanent URL changes where POST requests must remain POST.

How to Fix

Update all references to the new URL. The HTTP method is preserved.

Description

The server timed out waiting for the request. The client did not produce a request within the time the server was prepared to wait.

When You See It

When a client takes too long to send the complete request (slow upload, network issues).

How to Fix

Retry the request. Check your network connection. Reduce request payload size.

Key Differences

1.

308 is a 3xx Redirection response, while 408 is a 4xx Client Error response.

2.

HTTP 308: The resource has been permanently moved. Like 301, but guarantees the HTTP method will NOT be changed.

3.

HTTP 408: The server timed out waiting for the request. The client did not produce a request within the time the server was prepared to wait.

4.

You encounter 308 when for permanent URL changes where POST requests must remain POST.

5.

You encounter 408 when when a client takes too long to send the complete request (slow upload, network issues).

When to Use Which

For 308 (Permanent Redirect): Update all references to the new URL. The HTTP method is preserved. For 408 (Request Timeout): Retry the request. Check your network connection. Reduce request payload size.

Learn More