API Design · Junior · Question 70 of 75
How can a client follow a long-running operation started with 202 Accepted?
- ✓Correct answer: The response points to a status resource (e.g.
Location: /jobs/123) that the client polls, or the server sends a webhook when done - 2The client keeps the connection open for hours
- 3The client resends the original request until it gets 200
Explanation
The status resource reports progress and, when finished, links to the result or describes the error.