> For the complete documentation index, see [llms.txt](https://docs.exads.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exads.com/api/exads-public-api/api-manual-errors.md). Agents can also search and read this documentation through its [MCP server](https://docs.exads.com/~gitbook/mcp).

# Errors

All errors return the most specific, appropriate HTTP response code from the following table:

## Return Codes <a href="#return-codes" id="return-codes"></a>

<table data-header-hidden="false" data-header-sticky data-search="false"><thead><tr><th>Code</th><th>Error</th><th>Description</th></tr></thead><tbody><tr><td>400</td><td>Bad Request</td><td>A malformed request was received from the client. This is the most generic response given by the API</td></tr><tr><td>401</td><td>Unauthorized</td><td>You are not authorized and cannot access the requested resource</td></tr><tr><td>403</td><td>Forbidden</td><td>You do not have permission to access the requested resource</td></tr><tr><td>404</td><td>Not Found</td><td>The requested resource cannot be found. It may become available later</td></tr><tr><td>405</td><td>Method Not Allowed</td><td>An unsupported HTTP method was used for the requested resource</td></tr><tr><td>406</td><td>Not Acceptable</td><td>The Accept or Accept-Encoding type requested by the client is not available</td></tr><tr><td>409</td><td>Conflict</td><td>The request cannot be completed because there is a conflict with the existing resource</td></tr><tr><td>410</td><td>Gone</td><td>The requested resource is no longer available and will not be available again</td></tr><tr><td>411</td><td>Length Required</td><td>The requested resource expects a Content-Length to be supplied by the client</td></tr><tr><td>413</td><td>Request Entity Too Large</td><td>The request body supplied by the client was too large, so the resource cannot process it</td></tr><tr><td>415</td><td>Unsupported Media Type</td><td>An incorrect (or no) Content-Type has been supplied by the client</td></tr><tr><td>422</td><td>Unprocessable Entity</td><td>The request is not malformed and the media type is acceptable but the resource cannot process the request</td></tr><tr><td>429</td><td>Too Many Requests</td><td>The rate limit has been reached. See the <a href="https://docs.exads.com/api/exads-public-api/api-manual-rate-limiting.md">Rate Limiting </a>section for more information</td></tr><tr><td>500</td><td>Internal Server Error</td><td>The server could not process your request due to an unexpected internal server error</td></tr><tr><td>501</td><td>Not Implemented</td><td>The requested resource has not been implemented</td></tr><tr><td>503</td><td>Service Unavailable</td><td>The requested service is temporarily not available</td></tr></tbody></table>

## Standard Response Format <a href="#standard-response-format" id="standard-response-format"></a>

All errors have a standard response body with two fields, code and message. Additional fields are optional.

## Examples <a href="#examples" id="examples"></a>

This is the simplest form of an error's return body. You can rely on these fields being present in every error:

### Error Responses - Example 1 (Baseline) <a href="#error-responses---example-1-baseline" id="error-responses---example-1-baseline"></a>

```json
{
        "code": 429,
        "message": "You have exceeded your number of requests. Please try again later"
}
```

The following example has, in addition to the standard fields, extra fields for errors associated with this specific request:

### Error Responses - Example 2 (More Complex) <a href="#error-responses---example-2-more-complex" id="error-responses---example-2-more-complex"></a>

```json
{
        "code": 422,
        "message": "Unprocessable entity",
        "cause": "Validation failed",
        "errors": [
            {
                "resource": "Issue",
                "field": "title",
                "code": "missing_field"
            },
            ...
        ]
}
```

## Password Validation Errors <a href="#password-validation-errors" id="password-validation-errors"></a>

When a request sets a password and the password breaks one of the password rules, the API returns **400 Bad Request**. This applies to creating a user, completing a signup, and changing or resetting a password, on both the Public API and the Network API.

The body's `message` object has the error code as its key and a readable message as its value:

```json
{
        "message": {
            "password_too_short": "Use at least 12 characters."
        }
}
```

| Error code                  | Message                                                                     | Meaning                                                                                                                   |
| --------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `password_too_short`        | Use at least 12 characters. (15 for Network Admin Users)                    | The password is shorter than the minimum: 12 characters for Advertisers and Publishers, 15 for Network Admin Users.       |
| `password_too_long`         | Use at most 128 characters.                                                 | The password is longer than 128 characters.                                                                               |
| `password_contains_context` | Don't use your username, your email or the platform name in the password.   | The password contains the username, the part of the email address before the @, or the name of the platform or Ad Server. |
| `password_breached`         | This password has appeared in a data breach. Please choose a different one. | The password has appeared in a public data breach and can't be used.                                                      |

Check the key, not the message text. The same rules apply in the Admin Panel and the API, so a password accepted by one is never rejected by the other. For the full rules, see [Passwords](https://docs.exads.com/general/passwords#password-rules).

<br>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.exads.com/api/exads-public-api/api-manual-errors.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
