HTTP

HTTP 202 Accepted vs 523 Origin Is Unreachable

HTTP 202 (Accepted) is a 2xx Success response, while 523 (Origin Is Unreachable) is a 5xx Server Error response. 202 indicates that the request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon. In contrast, 523 means that cloudflare-specific. Cloudflare could not reach the origin server (DNS resolution failed or no route).

Descrição

The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon.

Quando você o vê

For async operations like batch jobs, email sending, or background tasks that take time to complete.

Como corrigir

Poll the provided status URL or wait for a callback/webhook.

Descrição

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

Quando você o vê

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

Como corrigir

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

Diferenças principais

1.

202 is a 2xx Success response, while 523 is a 5xx Server Error response.

2.

HTTP 202: The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon.

3.

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

4.

You encounter 202 when for async operations like batch jobs, email sending, or background tasks that take time to complete.

5.

You encounter 523 when when Cloudflare's DNS for the origin fails to resolve.

Quando usar qual

For 202 (Accepted): Poll the provided status URL or wait for a callback/webhook. For 523 (Origin Is Unreachable): Verify DNS records in Cloudflare dashboard. Check origin server's IP address.

Saiba mais