HTTP

HTTP 422 Unprocessable Content vs 508 Loop Detected

HTTP 422 (Unprocessable Content) is a 4xx Client Error response, while 508 (Loop Detected) is a 5xx Server Error response. 422 indicates that the server understands the content type and syntax, but was unable to process the contained instructions. Common in API validation errors. In contrast, 508 means that the server detected an infinite loop while processing the request (WebDAV).

Description

The server understands the content type and syntax, but was unable to process the contained instructions. Common in API validation errors.

When You See It

When form validation fails — correct syntax but invalid data (e.g., email format wrong, date in the past).

How to Fix

Check the response body for specific validation errors and correct the input data.

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.

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

2.

HTTP 422: The server understands the content type and syntax, but was unable to process the contained instructions. Common in API validation errors.

3.

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

4.

You encounter 422 when when form validation fails — correct syntax but invalid data (e.g., email format wrong, date in the past).

5.

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

When to Use Which

For 422 (Unprocessable Content): Check the response body for specific validation errors and correct the input data. For 508 (Loop Detected): Fix the circular reference in the WebDAV configuration.

Learn More