Skip to main content

Error Semantics

Dash API error format:

{ "code": "<string>", "message": "<string>" }

Common

HTTPcodeDescription
400invalid_requestInvalid request shape or fields
400invalid_idInvalid path ID
400no_fieldsPATCH request has no updatable fields
401unauthorizedAuthentication failed
403forbiddenRequest is recognized but not allowed
404not_foundResource does not exist
413body_too_largeRequest body is too large
409conflict codeState conflict
503db_errorDatabase read or write failed
503redis_cache_errorRedis cache sync failed

Node Management

codeDescription
invalid_nameEmpty node name
invalid_display_orderDisplay order is not positive
invalid_traffic_cycle_modeInvalid node billing cycle mode
invalid_traffic_billing_start_dayBilling day is outside 1..31
invalid_traffic_billing_anchor_dateInvalid billing anchor date
invalid_traffic_billing_timezoneInvalid billing timezone
invalid_tagsTags is not a string array
invalid_secretInvalid node secret
invalid_group_idsInvalid group IDs
secret_collision_exhaustedRandom secret collision retries exhausted
secret_generation_failedSecret generation failed

Node Upgrade

HTTPcodeDescription
409node_version_unavailableBundled node version is unavailable
409invalid_node_versionBundled node version is invalid
409node_upgrade_unsupportedCurrent node version is below 0.2.1 and does not support automatic update delivery
409node_platform_unknownNode platform is unknown
409node_platform_unsupportedNode platform is unsupported
409node_asset_missingMatching node asset is missing
503node_asset_errorUpgrade asset generation failed

Traffic

HTTPcodeDescription
400invalid_fieldsInvalid traffic settings field
409traffic_daily_requires_billingDaily traffic requires billing mode

Alerts and Notifications

codeDescription
invalid_fieldsInvalid rule, mount, channel, or setting fields
not_logged_inTelegram MTProto is not logged in
notify_errorTest notification send failed

Themes

HTTPcodeDescription
400invalid_theme_packageInvalid theme package format
404not_foundTheme does not exist
503theme_storage_errorTheme storage is unavailable
500theme_unavailableBuilt-in theme or theme state is unavailable

Theme list responses can return this warning header:

X-Theme-Warning: active_theme_unavailable