# Errors

Sometimes your API call will generate an error. Here you will find additional information about what to expect if you don’t format your request properly, or we fail to properly process your request.

### Response Codes

Status Code Description

* 400 Bad request
* 401 Requires authentication
* 403 Forbidden
* 404 Not Found
* 405 Method Not Allowed
* 406 Missing Accept header. For example: `Accept: application/json`
* 429 Too many requests/Rate limit exceeded
* 500 Internal server error

### Failed Requests

The general format guidelines are displayed when the accompanying status code is returned.

```http
GET https://api.iafcertsearch.com/api/client/v1/resource HTTP/1.1
```

```http
HTTP/1.1 404 BAD REQUEST
Content-Type: application/json

{
    "errors": [
      {"code": "not_found", "message": "error message explained"},
    ]
}
```


---

# Agent Instructions: 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:

```
GET https://support.iafcertsearch.org/api-developer-guide/api-integration/errors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
