# Get error list

Returns the human-readable description of an error code in the requested language.
**Note**: requires `Content-Type: application/json` header.
See [getErrors](https://docs.namirial.app/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-errors).

Endpoint: GET /api/utility/errors
Version: 26.1.0.3
Security: basicAuth, sslCertificate

## Security:

  - `basicAuth` (unknown)
    http basic

  - `sslCertificate` (unknown)
    mutualTLS

## Query parameters:

  - `code` (integer, required)
    The error code to look up.

  - `language` (string, required)
    Language for the error text. Use ISO 639-1 alpha-2 codes: `EN` (English), `IT` (Italian), `DE` (German), `ES` (Spanish), `RO` (Romanian). ISO 639-2 alpha-3 codes (`ENG`, `ITA`, `DEU`, `SPA`, `RON`) are accepted for legacy compatibility but will not be extended to new languages.

## Response 200:

  - `200` (unknown)
    Error description returned.
If the error code does not exist, `errorText` is `"Unspecified error"`.

## Response 200 fields (application/json):

  - `errorCode` (integer)
    The error code.
    Example: 1027

  - `errorLanguage` (string)
    ISO 639-2 alpha-3 language code of the response.
    Example: ENG

  - `errorLanguage2` (string)
    ISO 639-1 alpha-2 language code of the response.
    Example: EN

  - `errorText` (string)
    Human-readable description of the error in the requested language. Returns `"Unspecified error"` if the error code does not exist.
    Example: The file is duplicated

## Response 500:

  - `500` (unknown)
    Application error.

## Response 500 fields (application/json):

  - `code` (integer, required)
    Application error code.
    Example: 242

  - `message` (string, required)
    Human-readable error description. For validation errors (code 242), includes field-level details in the format `Input parameter invalid: [{field=..., message=...}]`.
    Example: Input parameter invalid: [{field=disposableHolder, message=must not be null}]

## Response 200 examples:

  - `Error code found` (unknown)

  - `Error code not found — returns Unspecified error` (unknown)

## Response 500 examples:

  - `Invalid language code (code 2084)` (unknown)

  - `Missing required parameters (code 242)` (unknown)

  - `Authentication or authorization error (code 11002)` (unknown)

