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).

Mô tả

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

Khi bạn thấy mã này

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

Cách khắc phục

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

Mô tả

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

Khi bạn thấy mã này

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

Cách khắc phục

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

Sự khác biệt chính

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.

Khi nào dùng cái nào

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.

Tìm hiểu thêm