HTTP 401
grant_revoked
HTTP 401 — Grant revoked
When you see it
The grant behind this credential was disconnected — by the user in Settings, by a password change, or by an encryption-key change.
What to do
Ask the user to connect the app again. Refreshing will not help: the grant is gone, not expired. A key change also revokes, because the grant carried a key that no longer opens anything.
The response
Every error is RFC 9457 problem+json:
json
{
"type": "https://devs.inittasks.com/errors/grant_revoked",
"title": "Grant revoked",
"status": 401,
"detail": "a sentence for a developer; never branch on it",
"instance": "/todos/8E4F2A1B",
"request_id": "3f9a1c7e-2b44-4d1e-9c30-5a7e8b2d1f60"
}Branch on type, never on detail or on the HTTP status alone — several codes share a status.