Status codes
Every response carries a status_code for the request and one for each task. A task that ends in an error is not billed unless the table says so.
| Code | HTTP | Meaning | Billed |
|---|---|---|---|
| 20000 | 200 | Ok.The task returned data. Its cost is what we charged. | Yes |
| 20100 | 200 | Task Created.A task_post task was accepted and queued. Read it with task_get once tasks_ready lists it. Nothing is charged until it returns data. | No |
| 40006 | 400 | You can send up to 100 tasks in one request.One POST carried more than 100 tasks. Nothing ran. | No |
| 40100 | 401 | Authentication required. Use any login and your dg_ API key as the password.No credentials were sent. Use HTTP Basic with any login and your dg_ key as the password, or Authorization: Bearer dg_.... | No |
| 40101 | 401 | Authentication failed. The API key is missing, malformed or revoked.The API key is missing, malformed or revoked, or its owner is no longer a member of an organization. | No |
| 40102 | 200 | No Search Results.The request ran but there was no data to return: an empty results page, or no fetch level got the page. You weren't billed. | No |
| 40202 | 429 | Too many requests. Retry shortly.Too many requests for this key. Wait for the Retry-After seconds and retry. | No |
| 40210 | 402 | Insufficient funds. Top up your wallet and retry. You weren't billed.Your wallet balance is below the most this request could cost (the worst case its max_level or max_cost allows). Nothing ran. | No |
| 40400 | 404 | Not Found.No route at this path. Check it against /v1/account/support_matrix. | No |
| 40401 | 200 | Task Not Found.No task with this id in your organization. | No |
| 40402 | 404 | This endpoint isn't available yet. See /v1/account/support_matrix. You weren't billed.The route exists in the catalog but isn't served yet, or the service behind it isn't set up on this server. You weren't billed. | No |
| 40501 | 200 | Invalid Field.A field in the task failed validation. status_message names the field. The task didn't run. | No |
| 40503 | 400 | POST Data Is Invalid.The body isn't a JSON array of task objects, or a live/task_post route was called with a method other than POST. | No |
| 40601 | 200 | Task Handed.A worker has picked the task up and it's running. | No |
| 40602 | 200 | Task In Queue.The task is still queued. Try task_get again later, or wait for your pingback. | No |
| 50000 | 500 | Internal Error. You weren't billed.Something failed on our side or upstream and the task returned no data. You weren't billed. | No |