HTTP

HTTP 202 Accepted vs 203 Non-Authoritative Information

Both HTTP 202 (Accepted) and 203 (Non-Authoritative Information) belong to the 2xx Success category. 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. Meanwhile, 203 means that the response payload has been modified by a transforming proxy from the origin server's 200 response.

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ả

The response payload has been modified by a transforming proxy from the origin server's 200 response.

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

When a proxy or CDN modifies the response body (e.g., adds headers, transforms content).

Cách khắc phục

Check if a proxy is modifying the response. Access the origin directly if you need the original content.

Sự khác biệt chính

1.

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.

2.

HTTP 203: The response payload has been modified by a transforming proxy from the origin server's 200 response.

3.

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

4.

You encounter 203 when when a proxy or CDN modifies the response body (e.g., adds headers, transforms content).

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

For 202 (Accepted): Poll the provided status URL or wait for a callback/webhook. For 203 (Non-Authoritative Information): Check if a proxy is modifying the response. Access the origin directly if you need the original content.

Tìm hiểu thêm