Errors

DreamSync returns a consistent error shape so your client can branch on error.code rather than fragile message strings.

{
  "error": {
    "code": "plan_required",
    "message": "This endpoint requires the Developer plan.",
    "docs": "https://dreamsync.dev/docs/errors/plan_required"
  },
  "requestId": "req_abc"
}

Canonical codes

CodeHTTPMeaning
unauthorized401Missing or invalid credentials.
forbidden403Not permitted.
not_guild_admin403Caller is not an admin of this guild.
plan_required402This endpoint or feature requires a higher plan.
not_found404Resource not found.
conflict409Conflict with existing state.
rate_limited429Rate limit exceeded.
validation_failed400Request validation failed.
upstream_unavailable502An upstream service is unavailable.
upstream_quota502An upstream quota has been exhausted.
bot_missing_permissions422Bot lacks a required Discord permission.
role_above_bot422Target role is above the bot’s highest role.
link_not_found404No Roblox link for this Discord user.
member_not_in_guild404Target user is not a member of this guild.
revoked401Credential has been revoked.
maintenance503DreamSync is currently in maintenance mode.