HTTP

HTTP 203 Non-Authoritative Information vs 429 Too Many Requests

HTTP 203 (Non-Authoritative Information) is a 2xx Success response, while 429 (Too Many Requests) is a 4xx Client Error response. 203 indicates that the response payload has been modified by a transforming proxy from the origin server's 200 response. In contrast, 429 means that the user has sent too many requests in a given time (rate limiting). The response should include a Retry-After header.

説明

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

このコードが表示される場合

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

解決方法

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

説明

The user has sent too many requests in a given time (rate limiting). The response should include a Retry-After header.

このコードが表示される場合

When hitting API rate limits or making too many requests too quickly.

解決方法

Check the Retry-After header. Implement exponential backoff. Consider caching responses.

主な違い

1.

203 is a 2xx Success response, while 429 is a 4xx Client Error response.

2.

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

3.

HTTP 429: The user has sent too many requests in a given time (rate limiting). The response should include a Retry-After header.

4.

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

5.

You encounter 429 when when hitting API rate limits or making too many requests too quickly.

どちらをいつ使うか

For 203 (Non-Authoritative Information): Check if a proxy is modifying the response. Access the origin directly if you need the original content. For 429 (Too Many Requests): Check the Retry-After header. Implement exponential backoff. Consider caching responses.

詳しく見る