Articles on: Developers

Errors, rate limits and retries

Kelp uses standard HTTP status codes. Here is what each one means and what to do.

Status codes

  • 200 - success.
  • 400 - malformed request, such as bad JSON or a field that is not configured on the collection. Fix the request before retrying.
  • 401 / 403 - the X-Api-Key is missing, invalid or lacks the scope needed.
  • 404 - unknown collection or endpoint.
  • 429 - rate limited. Wait for the time in the Retry-After header.
  • 502 / 503 / 504 - temporary server errors. Retry with backoff.

Retries

  • Only retry 429, 502, 503, 504 and network or timeout errors. Do not retry other 4xx errors.
  • Use exponential backoff with jitter and respect Retry-After when it is present.
  • The @kelpclick/client SDK does this for you. Direct API callers need to implement it.

Timeouts

Set a client-side timeout on every request and treat timeouts as retryable. The SDK defaults to 10 seconds. Use a shorter timeout for search-as-you-type.

Reporting an issue

Include the x-request-id or x-trace-id response header when you contact us, so we can trace the request.
Full reference: Errors & limits

Updated on: 04/12/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!