HTTP

HTTP 308 Permanent Redirect vs 418 I'm a Teapot

HTTP 308 (Permanent Redirect) is a 3xx Redirection response, while 418 (I'm a Teapot) 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, 418 means that any attempt to brew coffee with a teapot should result in this error. An April Fools' joke from 1998 that became a beloved part of HTTP culture.

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

Any attempt to brew coffee with a teapot should result in this error. An April Fools' joke from 1998 that became a beloved part of HTTP culture.

When You See It

As an Easter egg on some websites, or when a server humorously refuses a request.

How to Fix

Use a coffee pot instead of a teapot. Or just enjoy the joke.

Key Differences

1.

308 is a 3xx Redirection response, while 418 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 418: Any attempt to brew coffee with a teapot should result in this error. An April Fools' joke from 1998 that became a beloved part of HTTP culture.

4.

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

5.

You encounter 418 when as an Easter egg on some websites, or when a server humorously refuses a request.

When to Use Which

For 308 (Permanent Redirect): Update all references to the new URL. The HTTP method is preserved. For 418 (I'm a Teapot): Use a coffee pot instead of a teapot. Or just enjoy the joke.

Learn More