Viewing: Error Codes

Alerts & Webhooks - Error Codes

Understand SAHMK API error codes and build reliable webhook consumers that safely handle retries and duplicate deliveries.

The HTTP errors below are returned by SAHMK API requests. Webhook delivery retries follow the delivery lifecycle.

Webhook delivery best practices

  • Treat delivery attempts as idempotent; duplicate deliveries can occur on retry.
  • Return 2xx quickly after durable persistence; process heavy work asynchronously.
  • Track delivery IDs and failure reasons for support and reconciliation.
400INVALID_PARAM

Invalid payload field or unsupported query option.

Action: Fix request payload and retry.

401AUTH_REQUIRED

The X-API-Key header is missing.

Action: Add an active API key and retry.

403PLAN_LIMIT / FEATURE_DISABLED

Plan lacks feature access or limits were reached.

Action: Upgrade plan or adjust usage.

404NOT_FOUND

Webhook or alert resource was not found for this account.

Action: Verify resource id and ownership context.

429RATE_LIMITED / detail

429 responses include error.code RATE_LIMITED. App quota also keeps a detail string. Honor Retry-After when present.

Action: Backoff and retry with jitter.

Error Response Format

json
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable message"
  }
}

Realtime WebSocket errors

For WebSocket-specific close codes, reconnect behavior, and remediation guidance, see Real-time WebSocket - Errors.

Last updated on