Should we use 204 no_content or 202 accepted with reactive caching
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
When Reactive Caching is used for an API, the API response is calculated by a sidekiq process. Rather than keep the original request open and waiting, we send back a response and expect the client to keep sending the request (poll) until it gets the data (or no data).
What response should be sent to the client when the calculation is not complete? Should it be:
- 204 No Content
- 202 Accepted
- Something else?
Edited by 🤖 GitLab Bot 🤖