Understand Keymint API error handling and custom error codes.
Success Codes
HTTP Status | Code | Description |
---|---|---|
200 OK | 0 | Success - Request completed successfully |
Client Error Codes (4xx)
HTTP Status | Code | Description | Common Causes |
---|---|---|---|
400 Bad Request | 1 | Malformed Request - Missing or invalid parameters | Missing productId, licenseKey, invalid date format |
401 Unauthorized | 1 | Invalid Token - Authentication failed | Missing, expired, or invalid access token |
403 Forbidden | 2 | Operation Restricted - License state prevents action | Expired license, activation limit reached, blocked |
404 Not Found | 1 | Resource Not Found - Requested resource doesn’t exist | Invalid productId, licenseKey, customerId |
404 Not Found | 2 | Customer Not Found - Specific to customer operations | Customer ID doesn’t exist |
409 Conflict | 2 | Resource Conflict - State prevents request | Duplicate customer email, existing activation |
429 Too Many Requests | 3 | Rate Limit Exceeded - Too many requests | Exceeded API rate limits |
Server Error Codes (5xx)
HTTP Status | Code | Description | Action Required |
---|---|---|---|
500 Internal Server Error | 1 | Server Error - Unexpected server issue | Contact support if persistent |