HTTP 401
grant_expired
HTTP 401 — Grant expired
When you see it
The grant reached its expiry. Personal access tokens expire after at most a year; OAuth grants need re-approval after 365 days.
What to do
Mint a new key, or send the user through the approval flow again.
The response
Every error is RFC 9457 problem+json:
json
{
"type": "https://devs.inittasks.com/errors/grant_expired",
"title": "Grant expired",
"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.