> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leamout.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> Understand Leamout's standard API error envelope and error codes.

Leamout returns structured application errors:

```json theme={null}
{
  "success": false,
  "error": {
    "code": "BAD_REQUEST",
    "message": "invalid request body"
  }
}
```

Current shared error codes include:

```text theme={null}
BAD_REQUEST
PAYMENT_REQUIRED
PAYLOAD_TOO_LARGE
UNAUTHORIZED
FORBIDDEN
STEP_UP_REQUIRED
NOT_FOUND
CONFLICT
TOO_MANY_REQUESTS
NOT_IMPLEMENTED
INTERNAL_ERROR
SERVICE_UNAVAILABLE
```

`INTERNAL_ERROR` responses use a safe public message by default instead of returning wrapped internal errors.
