2xx range mean success, 4xx means something was wrong with the request, and 5xx means something went wrong on Synci’s side.
Error response format
Errors return a JSON body with a human-readablemessage:
422) additionally include an errors map with per-field messages:
Status codes
OAuth errors
The OAuth endpoints (/oauth/authorize, /oauth/token) return standard OAuth 2.0 error codes:
Handling errors
- Retry
429and5xxwith exponential backoff. Honor theRetry-Afterheader when present. - Do not retry
4xx(other than429) without fixing the request. - Treat
401on a previously working OAuth token as “access token expired”: refresh and retry once. If the refresh also fails, the user has likely revoked your app and needs to authorize again.