HTTP

HTTP 102 Processing vs 204 No Content

HTTP 102 (Processing) is a 1xx Informational response, while 204 (No Content) is a 2xx Success response. 102 indicates that the server has received and is processing the request, but no response is available yet. Prevents the client from timing out. In contrast, 204 means that the server successfully processed the request but is not returning any content. Common for DELETE operations and form submissions that don't need a response body.

描述

The server has received and is processing the request, but no response is available yet. Prevents the client from timing out.

何时出现

During long-running WebDAV operations.

如何修复

Wait for the final response. This is an interim status to prevent timeouts.

描述

The server successfully processed the request but is not returning any content. Common for DELETE operations and form submissions that don't need a response body.

何时出现

After DELETE requests, PUT updates where no body is needed, or CORS preflight responses.

如何修复

No fix needed. The action was successful; there is simply no content to return.

主要区别

1.

102 is a 1xx Informational response, while 204 is a 2xx Success response.

2.

HTTP 102: The server has received and is processing the request, but no response is available yet. Prevents the client from timing out.

3.

HTTP 204: The server successfully processed the request but is not returning any content. Common for DELETE operations and form submissions that don't need a response body.

4.

You encounter 102 when during long-running WebDAV operations.

5.

You encounter 204 when after DELETE requests, PUT updates where no body is needed, or CORS preflight responses.

何时使用哪个

For 102 (Processing): Wait for the final response. This is an interim status to prevent timeouts. For 204 (No Content): No fix needed. The action was successful; there is simply no content to return.

了解更多