Skip to content
Ledenboek Developers

Error codes

insufficient_scope

Insufficient permissions · HTTP 403

When you get this error

The key lacks the scope this endpoint requires. Which scope that is, is in detail.

What to do

Ask an administrator to create a key with the scope from detail. The scopes of an existing key do not change.

Example

application/problem+json
{
  "type": "https://developers.ledenboek.nl/errors/insufficient_scope",
  "title": "Insufficient permissions",
  "status": 403,
  "detail": "This key lacks the permission leden:schrijven. An administrator can create a key with that permission.",
  "instance": "/v2/members"
}

The type field is the same in every language; title and detail follow Accept-Language. Build your error handling on type.

All error codes