Skip to main content

Errors

TechSlayers APIs return standard HTTP status codes. Your integration should treat status codes (and not just response bodies) as the source of truth for success/failure.

Common status codes

StatusMeaningWhat to do
400Bad requestValidate inputs; log the response for field-level hints.
401UnauthorizedCheck key/token formatting and that you’re using the right header name.
403ForbiddenKey is valid but lacks permission, or is invalid/disabled in some services.
404Not found / pendingSome “report not ready yet” flows may use 404 as a pending signal (see RTSWPScan).
422Validation errorInput shape is wrong (commonly used by FastAPI-based services).
500Server errorRetry with backoff; escalate to support if persistent.

Practical debugging checklist

  1. Confirm you are calling the correct base URL for the product.
  2. Confirm auth:
    • correct header name (X-API-Key vs API-Key vs Authorization: Bearer …)
    • secret is not empty / not expired
  3. Log:
    • request URL + method
    • response status code
    • response body (redact secrets)
  4. Add timeouts and handle retries safely (see /platform/rate-limits).
If you need help debugging an unexpected response, email support@techslayers.com with the request/response details (redacting any secrets).