Skip to main content

How to handle 202 status?

Learn what the 202 status response means in the HypeAuditor API and how to handle it correctly when retrying API calls.

Written by Iren

When an API call returns a 202 status code, it means the requested report is not yet ready and is still being processed. In this case, read the result.retryTtl value from the response body — it indicates how many seconds to wait before making another request.

After the specified delay, re-call the API using the same parameters. Repeat this process until a 200 status is returned along with the complete report data.

Retry flow: 1. Make the initial API call. 2. Receive a 202 response. 3. Read the result.retryTtl value from the response body. 4. Wait for the duration specified by result.retryTtl. 5. Retry the API call with the same parameters.

For more information on how long report generation can take, see How long does it take to generate a report using API?.

Did this answer your question?