HTTP

HTTP 304 Not Modified vs 511 Network Authentication Required

HTTP 304 (Not Modified) is a 3xx Redirection response, while 511 (Network Authentication Required) is a 5xx Server Error response. 304 indicates that the resource has not been modified since the last request. The client can use its cached copy. In contrast, 511 means that the client needs to authenticate to gain network access. Used by captive portals (hotel/airport WiFi).

Description

The resource has not been modified since the last request. The client can use its cached copy.

When You See It

When the browser cache is still valid (If-None-Match / If-Modified-Since headers match).

How to Fix

No fix needed. This saves bandwidth by confirming the cached version is still current.

Description

The client needs to authenticate to gain network access. Used by captive portals (hotel/airport WiFi).

When You See It

When connecting to WiFi that requires login (airport, hotel, coffee shop).

How to Fix

Open a browser and complete the captive portal login process.

Key Differences

1.

304 is a 3xx Redirection response, while 511 is a 5xx Server Error response.

2.

HTTP 304: The resource has not been modified since the last request. The client can use its cached copy.

3.

HTTP 511: The client needs to authenticate to gain network access. Used by captive portals (hotel/airport WiFi).

4.

You encounter 304 when when the browser cache is still valid (If-None-Match / If-Modified-Since headers match).

5.

You encounter 511 when when connecting to WiFi that requires login (airport, hotel, coffee shop).

When to Use Which

For 304 (Not Modified): No fix needed. This saves bandwidth by confirming the cached version is still current. For 511 (Network Authentication Required): Open a browser and complete the captive portal login process.

Learn More