HTTP

HTTP 308 Permanent Redirect vs 499 Client Closed Request

HTTP 308 (Permanent Redirect) is a 3xx Redirection response, while 499 (Client Closed Request) 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, 499 means that a non-standard status code used by Nginx when the client closes the connection before the server responds.

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

A non-standard status code used by Nginx when the client closes the connection before the server responds.

When You See It

In Nginx logs when clients timeout or navigate away before receiving the response.

How to Fix

Optimize server response times. Check for slow upstream services.

Key Differences

1.

308 is a 3xx Redirection response, while 499 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 499: A non-standard status code used by Nginx when the client closes the connection before the server responds.

4.

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

5.

You encounter 499 when in Nginx logs when clients timeout or navigate away before receiving the response.

When to Use Which

For 308 (Permanent Redirect): Update all references to the new URL. The HTTP method is preserved. For 499 (Client Closed Request): Optimize server response times. Check for slow upstream services.

Learn More