# Authorization failed

Die KeenAuth-APIs liefern diesen Problemtyp mit dem HTTP-Status 403 (Forbidden).

## Problemtyp

| Feld | Wert |
|---|---|
| Typ-URI | `https://docs.keenauth.com/errors/authorization_failed` |
| Code | `authorization_failed` |
| HTTP-Status | 403 Forbidden |
| Titel | Authorization failed |

## Bedeutung

Beschreibung aus dem API-Vertrag (Originaltext, nicht übersetzt):

> The headless transaction completed but its authorization request ended without a code: consent, legal terms, an organization choice or a new sign-in is needed, or access was denied. The `error` extension carries the OAuth 2.0 error code (RFC 6749 §4.1.2.1).

## Erweiterungs-Member

Der Antworttext enthält diese zusätzlichen Member:

- `error`

## Beispielantwort

Beispiel für einen Antworttext. `detail` ist eine für Menschen lesbare englische Beschreibung, die nicht für Endnutzer gedacht ist; `instance` kennzeichnet die Anfrage.

```json
{
  "type": "https://docs.keenauth.com/errors/authorization_failed",
  "title": "Authorization failed",
  "status": 403,
  "code": "authorization_failed",
  "detail": "...",
  "instance": "urn:idp:request:<request_id>",
  "error": "..."
}
```

Alle Fehlercodes: [Fehlerreferenz](/docs/errors).
