Skip to main content
The API uses standard HTTP status codes and returns detailed error messages for easy troubleshooting.

Status Codes

Error Response Format

Common Errors

Invalid API Key (401)

Solution: Check your API key in the x-api-key header

Missing Required Field (400)

Solution: Ensure all required parameters are included

Ruleset Not Found (404)

Solution: Check ruleset name spelling or create the ruleset in your dashboard

Input Too Long (400)

Solution: Split your text into smaller chunks

Rate Limit Exceeded (429)

Solution: Wait for reset or upgrade your plan

Error Handling Best Practices

Implement Retry Logic

Validate Inputs Client-Side

Monitor and Alert

  • Set up monitoring for error rates
  • Alert on 5xx errors (server issues)
  • Track 429 errors (rate limit issues)
  • Monitor API response times

Getting Help

If you encounter persistent errors:
  1. Check the error message - Most errors are self-explanatory
  2. Verify your request format - Ensure JSON is valid
  3. Test with curl - Isolate the issue
  4. Contact support - Include error details and request timestamp
Support: contact@whetdata.com