HTTP

HTTP 415 Unsupported Media Type vs 508 Loop Detected

HTTP 415 (Unsupported Media Type) is a 4xx Client Error response, while 508 (Loop Detected) is a 5xx Server Error response. 415 indicates that the server refuses to accept the request because the Content-Type is not supported. In contrast, 508 means that the server detected an infinite loop while processing the request (WebDAV).

Description

The server refuses to accept the request because the Content-Type is not supported.

When You See It

When sending JSON to an endpoint that only accepts XML, or missing the Content-Type header.

How to Fix

Set the correct Content-Type header matching the data format you're sending.

Description

The server detected an infinite loop while processing the request (WebDAV).

When You See It

When WebDAV encounters circular references in bindings.

How to Fix

Fix the circular reference in the WebDAV configuration.

Key Differences

1.

415 is a 4xx Client Error response, while 508 is a 5xx Server Error response.

2.

HTTP 415: The server refuses to accept the request because the Content-Type is not supported.

3.

HTTP 508: The server detected an infinite loop while processing the request (WebDAV).

4.

You encounter 415 when when sending JSON to an endpoint that only accepts XML, or missing the Content-Type header.

5.

You encounter 508 when when WebDAV encounters circular references in bindings.

When to Use Which

For 415 (Unsupported Media Type): Set the correct Content-Type header matching the data format you're sending. For 508 (Loop Detected): Fix the circular reference in the WebDAV configuration.

Learn More