> For the complete documentation index, see [llms.txt](https://pin-studios.gitbook.io/login-system-pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pin-studios.gitbook.io/login-system-pro/tutorial/utils/generate-error-code.md).

# Generate Error Code

<figure><img src="https://2006791840-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F21RuTfnucmj2xX9WeLkv%2Fuploads%2Frinpxb120bU6aursoojO%2Fimage.png?alt=media&amp;token=ee64e989-a8fe-4b48-95f1-cdaeebc8e5d1" alt=""><figcaption></figcaption></figure>

## Input type

* Error Message - input error code (example : Login Failed Invalid Password)

{% hint style="info" %}
Will return the first alphabet like (LFIP). If a suffix is included, a random code will be generated like (LFIP-9d90DA).
{% endhint %}

## Example

<figure><img src="https://2006791840-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F21RuTfnucmj2xX9WeLkv%2Fuploads%2Fpb6sRchSP17QcSJQewl0%2Fimage.png?alt=media&amp;token=25729cdd-f100-4a54-9f65-4c58df24d876" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2006791840-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F21RuTfnucmj2xX9WeLkv%2Fuploads%2FkjFYJHX83KZP8o7kpQxU%2Fimage.png?alt=media&amp;token=4b76f9c6-3d1b-4cc0-896a-b91727f28d5b" alt=""><figcaption></figcaption></figure>

{% code overflow="wrap" %}

```cpp
LogTemp: Received response from server: {"status":"fail","message":"User not found"}
LogTemp: Error: Login failed: User not found
LogBlueprintUserMessages: [NewEditorUtilityWidgetBlueprint1_C_49] Error Code Only : UNF
With Suffix : UNF_icDRqfLyO
```

{% endcode %}
