HTTP 202 Accepted vs 207 Multi-Status
Both HTTP 202 (Accepted) and 207 (Multi-Status) 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, 207 means that the response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).
คำอธิบาย
The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon.
เมื่อคุณพบเห็น
For async operations like batch jobs, email sending, or background tasks that take time to complete.
วิธีแก้ไข
Poll the provided status URL or wait for a callback/webhook.
คำอธิบาย
The response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).
เมื่อคุณพบเห็น
In WebDAV operations that affect multiple resources simultaneously.
วิธีแก้ไข
Parse the XML body to check the status of each individual resource.
ความแตกต่างหลัก
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.
HTTP 207: The response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).
You encounter 202 when for async operations like batch jobs, email sending, or background tasks that take time to complete.
You encounter 207 when in WebDAV operations that affect multiple resources simultaneously.
ควรใช้อันไหนเมื่อไร
For 202 (Accepted): Poll the provided status URL or wait for a callback/webhook. For 207 (Multi-Status): Parse the XML body to check the status of each individual resource.