> For the complete documentation index, see [llms.txt](https://docs.skyone.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skyone.cloud/english/api-skyone-autosky/other-information/error-codes.md).

# Error Codes

At certain times, the API call may return a failure or control message. Below are the possible error codes and return messages for each module.

## Environments

| Code   | Message                                 |
| ------ | --------------------------------------- |
| ENV001 | Error saving changes                    |
| ENV002 | Error registering scheduled maintenance |
| ENV003 | Error disabling scheduled maintenance   |
| ENV004 | Error registering warning display       |

## Clients

| Code   | Message                                       |
| ------ | --------------------------------------------- |
| CLI001 | Error saving client to database               |
| CLI002 | Error creating security group in AD           |
| CLI003 | Error updating permissions                    |
| CLI004 | Error saving changes                          |
| CLI005 | Error removing client: there are active users |
| CLI006 | Error removing security group from AD         |
| CLI007 | Client name in use                            |
| CLI008 | Error registering scheduled maintenance       |
| CLI009 | Error disabling scheduled maintenance         |
| CLI010 | Error registering warning display             |

## Users

| Code   | Message                                                                          |
| ------ | -------------------------------------------------------------------------------- |
| USR001 | Error changing/configuring user password                                         |
| USR002 | Client not found                                                                 |
| USR003 | Error adding user to group                                                       |
| USR004 | User already added to client                                                     |
| USR005 | AD communication error                                                           |
| USR006 | Please provide a client ( cli\_uuid )                                            |
| USR007 | Error saving user                                                                |
| USR008 | Error removing user from DB                                                      |
| USR009 | Error removing user from AD                                                      |
| USR010 | Error removing user from client                                                  |
| USR011 | Error adding external user: Username is required                                 |
| USR012 | Error adding external user: Password is not an allowed parameter for external AD |
| USR013 | Provide a user ( usr\_uuid )                                                     |

## Applications

| Code   | Message                              |
| ------ | ------------------------------------ |
| APP001 | Client not found                     |
| APP002 | Error saving application to database |
| APP003 | Application not found                |
| APP004 | Error removing application           |

## Sessions

| Code   | Message                |
| ------ | ---------------------- |
| SES001 | Error removing session |


---

# 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.skyone.cloud/english/api-skyone-autosky/other-information/error-codes.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.
