Sockudo
Reference

Error codes

Interpret Sockudo HTTP, WebSocket, authentication, history, recovery, webhook, and push errors.

Sockudo uses HTTP status codes for REST failures and protocol events for WebSocket failures.

HTTP status

StatusMeaningAction
202Async work accepted.Store returned IDs and inspect status later.
400Invalid request.Validate request body and feature flags.
401Authentication failed.Check app key, secret, timestamp, and signature.
403Forbidden or disabled.Check app policy and feature enablement.
404Not found.Check app ID, channel, message serial, device ID, or publish ID.
409Conflict.Check idempotency, version, or resource lifecycle.
413Payload too large.Reduce event or push payload size.
429Rate limited.Back off and inspect quota policy.
5xxServer or dependency failure.Inspect logs, metrics, adapter, cache, queue, or provider status.

Auth failures

Most auth failures are caused by:

  • wrong app key or secret
  • stale timestamp
  • mismatched socket_id
  • signing a different channel_name than the client requested
  • mutating presence channel_data after signing
  • missing raw body for webhook validation

Recovery failures

Recovery can fail when:

  • the client did not use Protocol V2
  • the replay buffer expired
  • the stream reset
  • the reconnect landed after retention was purged
  • adapter or cache state was unavailable

Clients should rebuild state after recovery failure.

Push errors

Error classTypical cause
Device not foundRegistration missing or deleted.
Provider token invalidAPNs, FCM, Web Push, HMS, or WNS rejected the token.
Credential missingProvider credentials are not configured.
Publish not foundStatus retention expired or ID is wrong.
Scheduled push invalidMissing notBeforeMs or scheduled time is invalid.
Provider throttledProvider rate limits or campaign burst.
Payload too largePlatform-specific push payload limit exceeded.

Push publish admission can succeed while provider delivery fails later. Always inspect publish status for notification incidents.

On this page