Qaynaq LABS · TOOLS

HTTP · 2xx Success

207 Multi-Status

Response body contains multiple statuses for different parts of a batch request.

When you see this status

  • Batch processing where individual sub-requests succeed or fail
  • WebDAV PROPFIND with multiple resource responses
  • GraphQL response with partial data and errors

Common causes

  • Client sends a batch request with mixed success/failure
  • Server processes multiple independent operations
  • Middleware aggregates responses from multiple sources

How to debug it

  1. Inspect response body for nested status objects
  2. Check each sub-response for individual status codes
  3. Validate the Content-Type header is 'multipart/mixed'
  4. Log intermediate processing steps for each sub-request

Return this code in your framework

Express (Node.js)
res.status(207).send({ status: 207, responses: [{ path: '/a', status: 200 }, { path: '/b', status: 404 }] });
FastAPI (Python)
return JSONResponse(status_code=207, content={"status": 207, "responses": [{"path": "/a", "status": 200}, {"path": "/b", "status": 404}]})
NestJS
@Get() @HttpCode(207) async multiStatus() { return { status: 207, responses: [{ path: '/a', status: 200 }, { path: '/b', status: 404 }] }; }
Go (net/http)
w.WriteHeader(http.StatusMultiStatus)
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(map[string]interface{}{"status": 207, "responses": []map[string]int{{path: "/a", status: 200}, {path: "/b", status: 404}}})

About HTTP 207

HTTP status code 207 Multi-Status is part of the 2xx Success family. Response body contains multiple statuses for different parts of a batch request. Understanding it is essential for backend engineers, API designers, and anyone debugging integrations between services.

The Qaynaq Labs HTTP Status Code Explainer covers all standard codes with practical guidance: what triggers them, how to debug them in production, and exactly how to return them from common frameworks. Each code page is hand-curated and verified.

Frequently asked

Can 207 be used for non-batch requests?

No, it's specifically for responses containing multiple statuses. Use 200 for single successful responses.

What's the required response format for 207?

Must include a 'responses' array with individual status objects. Content-Type should be 'multipart/mixed' for WebDAV.

Should clients retry on 207?

No, 207 indicates partial success. Clients should handle individual sub-response statuses appropriately.