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

# Error Codes

### General

| ErrorCode | ErrorEnum                 | Meaning                                               |
| --------- | ------------------------- | ----------------------------------------------------- |
| `1001`    | `NotFound`                | The specified entity is not found                     |
| `1002`    | `ArgumentNullOrEmpty`     | A required parameter has been omitted.                |
| `1003`    | `BadArgumentException`    | A required parameter is malformed.                    |
| `1004`    | `ConfigurationException`  | An invalid Configuration has been referenced.         |
| `1005`    | `NotImplementedException` | A requested resource or action has no implementation. |

### Orders and catalogs

| ErrorCode | ErrorEnum                  | Meaning                                                                                          |
| --------- | -------------------------- | ------------------------------------------------------------------------------------------------ |
| `2001`    | `PriceInvalid`             | The supplied price is malformed, or inconsistent.                                                |
| `2002`    | `DateTimeInvalid`          | The supplied datetime is malformed, or inconsistent.                                             |
| `2003`    | `PaymentCannotBeProcessed` | The payment cannot be processed. More information is provided as part of the message in context. |

### Flights, cities and airports

| ErrorCode | ErrorEnum                  | Meaning                                                                                                                   |
| --------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `3001`    | `OriginDestinationInvalid` | The requested origin, or destination of the flight is malformed or non existent.                                          |
| `3002`    | `IataInvalid`              | The supplied [IATA code ](https://www.nationsonline.org/oneworld/IATA_Codes/IATA_Code_A.htm)is malformed or non existent. |
| `3003`    | `GeoLocationInvalid`       | The geography supplied is malformed.                                                                                      |
| `3004`    | `FlightsInThePast`         | The requested flight exists in the past. Only present and future flights are available.                                   |
| `3005`    | `FlightNumberInvalid`      | The supplied flight number is malformed.                                                                                  |

### Users

| ErrorCode | ErrorEnum      | Meaning                                                              |
| --------- | -------------- | -------------------------------------------------------------------- |
| `4001`    | `EmailInvalid` | The provided email is malformed.                                     |
| `4002`    | `UserExists`   | An attempt was made to create a user already existing in the system. |


---

# 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.guestlogix.io/glossary/api-convention/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.
