# Errors

If for any reason the **PKSA** fails to process the authentication request, it can send an error message to the **HAS** that will forward it to the **APP**. The same applies if the error is generated by the **HAS**.

In both cases, the **APP** will receive the following message:

### auth\_err

```
{
    cmd: "auth_err",
    uuid: string,
    error: string
}
```

{% tabs %}
{% tab title="Properties" %}

* **`uuid`**: the request identifier
* **`error`**: an error message encrypted with the `auth_key`
  {% endtab %}
  {% endtabs %}


---

# 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://docs.hiveauth.com/developer-documentation/has-for-applications/authentication/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.
