Peak problem types
Home / homematch / admin_user_cannot_block_self

An admin cannot block their own account.

Code
admin_user_cannot_block_self
Type
https://problems.peakintelligence.ch/homematch/admin-user-cannot-block-self
Status
403 Forbidden
Audience
client. Only the calling software can act on it. A client shows its own general failure and quotes traceId; detail is in English, for developers.
Service
homematch

Description

An admin asked to block their own account. This is refused because it would lock them out with nobody left to undo it. Another administrator must block the account if that is intended; retrying as the same admin fails again.

Example

HTTP/1.1 403 Forbidden
Content-Type: application/problem+json

{
  "type": "https://problems.peakintelligence.ch/homematch/admin-user-cannot-block-self",
  "title": "An admin cannot block their own account.",
  "status": 403,
  "code": "admin_user_cannot_block_self",
  "audience": "client",
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}

A real answer also carries detail when there is something to say about this occurrence, and may carry errors or members of the type's own, which the service's OpenAPI document describes. When to ask again is the Retry-After header.

Declared by