Error Response Format
All API errors follow a consistent JSON structure:status- HTTP status code as an integermessage- Human-readable error description
HTTP Status Codes
The ComfyControl API uses standard HTTP status codes to indicate success or failure:Success Codes
| Code | Status | Description |
|---|---|---|
| 200 | OK | Request succeeded |
| 201 | Created | Resource created successfully |
Client Error Codes
| Code | Status | Description |
|---|---|---|
| 400 | Bad Request | Invalid request parameters or validation error |
| 401 | Unauthorized | Missing, invalid, or expired authentication token |
| 403 | Forbidden | Valid authentication but insufficient permissions or tier limits |
| 404 | Not Found | Requested resource does not exist |
| 429 | Too Many Requests | Rate limit exceeded |
Server Error Codes
| Code | Status | Description |
|---|---|---|
| 500 | Internal Server Error | Unexpected server error |
| 503 | Service Unavailable | Service temporarily unavailable |
Common Error Scenarios
Bad Request (400)
Occurs when request parameters fail validation. Example Scenarios:- Invalid UUID format
- Missing required fields
- Invalid field types
- Validation constraints not met
Unauthorized (401)
Authentication failures due to token issues. Example Scenarios:- Missing Authorization header
- Invalid token format
- Expired token
- Revoked token
Forbidden (403)
Valid authentication but action not allowed. Example Scenarios:- Tier limits exceeded
- Insufficient permissions
- Resource belongs to another user
- Managed runner access without Pro/Plus tier
Not Found (404)
Requested resource doesn’t exist or doesn’t belong to you. Example Scenarios:- Invalid resource ID
- Resource deleted
- Resource belongs to different user
Rate Limited (429)
Too many requests in a short time period. Details:- Limit: 40 requests per 10 seconds
- Cooldown: 10 seconds
- Identifier: IP address
Internal Server Error (500)
Unexpected server-side error. What to do:- Retry the request after a brief delay
- Check API status page
- Contact support if issue persists
Validation Errors
Validation errors provide specific feedback about what went wrong: Runner Name Validation:Workflow-Specific Errors
Workflows can encounter specific error states: Invalid Workflow JSON:error_node- The ComfyUI node that failedexception_type- Type of exceptionexception_message- Detailed error message
Need Help?
If you encounter persistent errors:- Check this documentation for common solutions
- Verify your authentication token is valid
- Ensure you’re within rate limits
- Review the API Reference for correct usage
- Contact support at [email protected] with:
- Request ID (if provided)
- Timestamp of the error
- Full error message
- Steps to reproduce