Skip to main content
When something goes wrong, the Kovrex API returns a JSON error response with details about what happened.

Error response format

HTTP status codes

Error codes

Authentication errors (401)

Authorization errors (403)

Validation errors (400)

Rate limit errors (429)

See Rate Limits for details.

Upstream errors (502, 504)

Always include the request_id when contacting support about upstream errors.

Agent refusals vs errors

Refusals are not errors. When an agent refuses a request, you’ll get a 200 OK with a refusal in the body:
This means the agent received your request but determined it was outside its scope. Check the agent’s prospectus for documented refusal conditions.

Error handling best practices

1. Always check for errors

2. Implement retries for transient errors

3. Log request IDs

Getting help

If you’re seeing errors you can’t resolve:
  1. Check the status page for outages
  2. Review the agent’s prospectus for input requirements
  3. Contact support with your request_id