Error Handling
Learn how to handle API errors gracefully and troubleshoot common issues.
HTTP Status Codes
The Konver API uses standard HTTP status codes to indicate the success or failure of requests.
Success Codes
| Status Code | Description |
|---|---|
200 OK | Request succeeded |
201 Created | Resource was successfully created |
204 No Content | Request succeeded with no response body |
Client Error Codes
| Status Code | Description |
|---|---|
400 Bad Request | Invalid request syntax or parameters |
401 Unauthorized | Missing or invalid API key |
403 Forbidden | Valid API key but insufficient permissions |
404 Not Found | Requested resource doesn't exist |
422 Unprocessable Entity | Request validation failed |
429 Too Many Requests | Rate limit exceeded |
Server Error Codes
| Status Code | Description |
|---|---|
500 Internal Server Error | Something went wrong on our end |
502 Bad Gateway | Upstream service error |
503 Service Unavailable | Service temporarily unavailable |
Error Response Format
The API uses standard HTTP status codes to indicate errors. A 404 Not Found response is returned when a resource doesn't exist.
note
The exact error response format may vary. Always check the HTTP status code first when handling errors.
Troubleshooting
Authentication Issues
Problem: Receiving 401 Unauthorized errors
Solutions:
- Verify your API key is correct
- Check that the
Authorizationheader format isBearer YOUR_API_KEY - Ensure there are no extra spaces or newlines in the key
- Confirm the API key hasn't been revoked
Resource Not Found
Problem: Receiving 404 Not Found errors
Solutions:
- Verify the resource ID is correct (should be a valid UUID)
- Confirm the resource exists and hasn't been deleted
- Check that you're using the correct API endpoint
Rate Limiting
Problem: Receiving 429 Too Many Requests errors
Solutions:
- Implement request throttling in your application
- Use exponential backoff for retries
- Cache responses where appropriate
- Contact support if you need higher rate limits
See the Rate Limiting Guide for more details.
Debugging Tips
- Log request details: Include the endpoint, headers (minus the API key), and request body
- Check response headers: They often contain useful debugging information
- Use the API explorer: Test endpoints directly in the API Reference
- Review webhook delivery logs: Check for patterns in failures
Getting Help
If you're experiencing persistent issues:
- Review the error response details for specific guidance
- Contact support at support@konver.ai with:
- The error code and message
- The endpoint you're calling
- A timestamp of when the error occurred
- Your organization (not your API key)
Next Steps
Once you understand how to handle errors, you're ready for the next steps:
- Rate Limiting — Understand API rate limits
- Webhooks — Set up real-time event notifications
- API Reference — Complete API documentation