An API says 202 Accepted. The work may still be pending
You request a report and the application receives a successful response from the server. The screen says Report complete, but the file does not exist yet. The problem can start with a small misunderstanding: treating an accepted request as completed work. For a task that continues in the background, these are different moments.
What a 202 confirms
MDN explains that HTTP status 202 Accepted means a request has been accepted for processing, but processing has not finished and may not have started. It does not guarantee the action will complete: the process may fail or be disallowed when the server tries to carry it out.
A 202 response therefore does not justify announcing that an email has been sent, an export is available or an import has added every row. It confirms acceptance of the request, not those results. Interface copy should preserve this distinction.
Provide a way to follow the task
The MDN example returns a task identifier and an address for checking its status. This is a useful pattern: keep a reference to the accepted work and somewhere to find its progress. That address does not appear automatically because an API uses 202; the API must provide or document it.
An application can show pending, running, completed or failed according to what the service confirms. These are not mandatory protocol states: they are a tracking model that must be agreed with the system. Reaching a waiting timeout does not, on its own, prove that work has failed either.
Check the result before declaring success
For a report, verify that the result belongs to the task and can be retrieved. If processing fails, show the available reason and a next step, without presenting a new request as the same job. Status checks should run at a reasonable frequency and follow the service's instructions.
Test the journey with a slow task and one that fails after acceptance. Neither should show success before confirmation. A reliable automation distinguishes a request arriving from a result being ready.