HTTP

HTTP 422 Unprocessable Content vs 523 Origin Is Unreachable

HTTP 422 (Unprocessable Content) is a 4xx Client Error response, while 523 (Origin Is Unreachable) 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, 523 means that cloudflare-specific. Cloudflare could not reach the origin server (DNS resolution failed or no route).

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

Cloudflare-specific. Cloudflare could not reach the origin server (DNS resolution failed or no route).

When You See It

When Cloudflare's DNS for the origin fails to resolve.

How to Fix

Verify DNS records in Cloudflare dashboard. Check origin server's IP address.

Key Differences

1.

422 is a 4xx Client Error response, while 523 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 523: Cloudflare-specific. Cloudflare could not reach the origin server (DNS resolution failed or no route).

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 523 when when Cloudflare's DNS for the origin fails to resolve.

When to Use Which

For 422 (Unprocessable Content): Check the response body for specific validation errors and correct the input data. For 523 (Origin Is Unreachable): Verify DNS records in Cloudflare dashboard. Check origin server's IP address.

Learn More