# Error codes

List of error codes that are specified in `errorCode` property of [ProblemDetails](/error-models.md#problemdetails) class.

## 1 - Unautenthicated

User is not logged in. Please authenticate and repeat the action.

## 2 - Unauthorized

User is not authorized to perform specific action. Additional rights must be granted to the user for successful action execution.

## 3 - ValidationFailed

One or more validation rules were broken. Action should not be repeated unless request is modified or another resource that action relies on is changed.

## 4 - LicenseExpired

License is valid, but expired. License must be extended before repeating the action.

## 5 - ResourceLocked

Resource is temporarly locked by another session or instance. Action can be invoked again later.

## 6 - ResourceVersionMismatch

Resource version mismatch. The error occurs especially if the resource is stored on the API in a newer version than the version specified in the request.


---

# 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://developers.portos.sk/error-codes.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.
