Error response format
Every error response from the Knot API uses the same JSON structure:HTTP status codes
Common error scenarios
Invalid OTP
Invalid OTP
Insufficient balance
Insufficient balance
Policy violation
Policy violation
Token expired
Token expired
Rate limited
Rate limited
Error handling patterns
Exponential backoff
For429 and 503 errors, wait progressively longer between retries:
Handle authentication errors
Watch for401 responses and re-authenticate automatically: