Errors
Invalid token
The `invalid_token` error: HTTP 401 Unauthorized.
A credential that isn't one: malformed, unknown, or for another API.
| Field | Value |
|---|---|
code | invalid_token |
status | 401 Unauthorized |
title | Invalid token |
Synq's APIs answer errors with a problem document (RFC 9457, application/problem+json). Its type is the address of this page, and its code is invalid_token. Branch on code, never on title or detail: a code never changes once it ships, while the words may.
{
"type": "…/errors/invalid_token",
"title": "Invalid token",
"status": 401,
"code": "invalid_token"
}See every error code.