Skip to main content

Error Reference

The Tedro API uses standard HTTP status codes and returns errors in a consistent JSON format.

Error Response Format

All error responses follow this structure:
Validation errors include additional detail:

HTTP Status Codes

Success Codes

Client Error Codes

Server Error Codes

Common Error Scenarios

Authentication Errors (401)

Fix: Sign in again to get a fresh session cookie. Ensure you include the x-workspace-id header on every request.

Permission Errors (403)

Fix: Check your user role. Agent and Viewer role users cannot publish workflows, manage tools, or modify settings. Ask an Admin or Org Owner to perform the action or upgrade your role.

Validation Errors (400 / 422)

Fix: Check the details array for specific field errors. Correct the request body and retry.

Conflict Errors (409)

Fix: The resource you are trying to create conflicts with an existing one. Use a GET request to find the existing resource, or use a PATCH/PUT to update it instead.

Rate Limit Errors (429)

Fix: Wait for the duration specified in the Retry-After response header before retrying. See Rate Limiting for details on limits per endpoint.

Workflow Validation Errors (422)

When publishing a workflow, the platform validates the graph structure:
Fix: Open the workflow in the visual builder and fix the reported issue. Every published workflow must have at least one reachable Handoff node.

Error Handling Best Practices

  1. Always check the status code before parsing the response body
  2. Parse the error field for a human-readable description
  3. Check details on 400/422 responses for field-level validation errors
  4. Implement retry with backoff for 429 and 500 responses
  5. Log the full response for debugging — include status code, headers, and body