# Unauthenticated

The KeenAuth APIs return this problem type with HTTP status 401 (Unauthorized).

## Problem type

| Field | Value |
|---|---|
| Type URI | `https://docs.keenauth.com/errors/unauthenticated` |
| Code | `unauthenticated` |
| HTTP status | 401 Unauthorized |
| Title | Unauthenticated |

## Meaning

The credential is missing, invalid, expired or revoked. The response carries `WWW-Authenticate: Bearer`.

## Example response

Example response body. `detail` is a human-readable English description that is not meant for end users; `instance` identifies the request.

```json
{
  "type": "https://docs.keenauth.com/errors/unauthenticated",
  "title": "Unauthenticated",
  "status": 401,
  "code": "unauthenticated",
  "detail": "...",
  "instance": "urn:idp:request:<request_id>"
}
```

All error codes: [Error reference](/docs/errors).
