> For the complete documentation index, see [llms.txt](https://docs.humdata.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.humdata.org/build/hdx-apis/metadata-endpoints/troubleshooting-and-error-handling.md).

# Troubleshooting and error handling

### HTTP Status Codes

<table data-header-hidden data-first-column-sticky><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Code</strong></td><td><strong>Meaning</strong></td><td><strong>Action</strong></td></tr><tr><td><code>200</code></td><td>Success</td><td>Process the response</td></tr><tr><td><code>400</code></td><td>Bad request</td><td>Check query syntax</td></tr><tr><td><code>401</code></td><td>Unauthorized</td><td>Verify API token</td></tr><tr><td><code>403</code></td><td>Forbidden</td><td>Check permissions</td></tr><tr><td><code>404</code></td><td>Not found</td><td>Verify resource ID</td></tr><tr><td><code>429</code></td><td>Too many requests</td><td>Implement rate limiting</td></tr><tr><td><code>500</code></td><td>Server error</td><td>Retry after delay</td></tr></tbody></table>

### Dataset not found

* **Symptom**: See response below.

```
{
  "success": false,
  "error": {
    "__type": "Not Found Error",
    "message": "Not found"
  }
}
```

* **Likely cause**: Incorrect dataset ID or name.
* **Fix**: Verify the dataset ID or name. Use `package_search` to find the correct identifier.

### No results

* **Symptom:** No results returning from `package_search` endpoints even though the query should return packages.
* **Likely cause:** Incorrect search query.
* **Fix:** Review your Solr query syntax. Ensure quotes and operators are properly formatted.

### Rate limiting

* **Symptom:** `429` error code
* **Likely cause:** Using API calls more than 60 times per minute.
* **Fix:** HDX implements rate limiting to ensure service stability. Anonymous requests are limited to prevent abuse. Authenticated requests have higher limits for registered users. For best practices, we recommend caching results when possible and adding delays between bulk requests.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.humdata.org/build/hdx-apis/metadata-endpoints/troubleshooting-and-error-handling.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
