Skip to main content

Errors

HelaMesh uses standard HTTP status codes:

CodeMeaning
200Success
201Resource created
400Bad request โ€” validation failed
401Missing or invalid API key
403Authenticated but not authorized for this resource
404Resource not found
409Conflict (e.g. duplicate open invoice)
429Rate limited
5xxHelaMesh error โ€” safe to retry with backoff

Error response shapeโ€‹

409 Conflict
{
"statusCode": 409,
"message": "An open invoice for the same address and amount already exists. Wait for it to complete/expire, or use a different amount.",
"error": "Conflict"
}

Retry semanticsโ€‹

  • 4xx errors are your problem. Fix the request and retry. Do not retry 400/401/403/404/409 blindly.
  • 5xx errors are our problem. Retry with exponential backoff (start at 1s, cap at 30s, give up after ~5 attempts).
  • 429 rate limit. Honor the Retry-After header if present, otherwise back off at least 1 minute before retrying.