Error Codes and Handling
When something goes wrong during an API request or integration, Operator AI provides clear error codes and messages to help you diagnose and fix issues fast.
π« Common HTTP Status Codes
200 OK
Success
Everything worked as expected.
201 Created
Success
Resource (user, message, etc.) successfully created.
400 Bad Request
Client Error
Missing fields, bad data formatting, or invalid JSON.
401 Unauthorized
Auth Error
Missing or incorrect API token β check Authorization header.
403 Forbidden
Permission Error
Token exists but lacks permission for requested action.
404 Not Found
Resource Missing
Wrong endpoint, resource ID doesn't exist.
422 Validation Error
Validation Issue
Missing required fields or invalid field values.
429 Too Many Requests
Rate Limited
Slow down API call frequency β implement backoff/retries.
500 Server Error
Operator AI Server Issue
Temporary problem β retry the request later.
β Error codes are the fastest way to understand what went wrong.
π οΈ Example Error Response Format
Example when trying to create a user without required fields:
β All error responses return standardized JSON for easy parsing and debugging.
π₯ Fast Troubleshooting Tips
Missing field errors
Double-check required fields in your request body.
Unauthorized errors (401)
Reconfirm your Bearer Token is active and correct.
403 Permission errors
Check if your API token has correct scopes (coming soon).
404 errors
Verify the endpoint and resource ID you're targeting.
429 Too Many Requests
Implement retry logic with exponential backoff.
β Debugging quickly = less downtime and faster scaling.
π Best Practices for Error Handling
Always check response codes before assuming success
Don't build on bad assumptions.
Implement retries for 429 and 5xx errors
Avoid lost data and bad user experiences.
Log all failed requests
Makes troubleshooting future issues easier.
Validate API payloads before sending
Catch errors early in your code.
Securely handle and store error logs
Protect sensitive error data.
β Strong error handling = professional-grade integrations.
π Need Help?
Explore API troubleshooting tutorials inside this documentation.
Your Success Manager can review your integration if you're on a scaling plan.
β Weβre here to keep your Operator AI workflows smooth and resilient.
π― End of API Section!
Last updated