ReferenceError Codes

Error Codes Reference

Common Respira error codes, what they mean, and how to resolve them quickly.

Error Codes Reference

Common error codes and how to resolve them.

Authentication Errors

CodeMessageSolution
respira_invalid_api_keyInvalid or expired API keyGenerate new key in WordPress Admin
respira_missing_api_keyNo API key providedAdd key to MCP config
respira_key_revokedAPI key has been revokedGenerate new key

Permission Errors

CodeMessageSolution
respira_insufficient_permissionsUser lacks required capabilityCheck WordPress user role
respira_direct_edit_disabledDirect editing not enabledEnable in Respira settings or use duplicate workflow

Content Errors

CodeMessageSolution
respira_page_not_foundPage ID doesn't existVerify page ID with wordpress_list_pages
respira_post_not_foundPost ID doesn't existVerify post ID with wordpress_list_posts
respira_content_validation_failedContent failed security checkRemove suspicious code/scripts or validate with wordpress_validate_security

Builder Errors

CodeMessageSolution
respira_builder_not_detectedNo page builder foundPage may use classic editor or Gutenberg
respira_module_not_foundModule identifier didn't matchUse admin_label or extract structure first
respira_invalid_builder_contentMalformed builder dataRe-extract builder content; page may be corrupted

Connection Errors

CodeMessageSolution
ECONNREFUSEDCan't connect to WordPressCheck site URL, verify site is online
ETIMEDOUTConnection timed outCheck hosting/network; retry
CERT_ERRORSSL certificate issueVerify SSL is valid

cause and retry_ok (plugin 9.1.0)

Errors on the connection, sign-in and approval paths carry two more fields in their data, so an agent can tell a key problem from a host problem and knows when a retry is worth sending:

FieldValuesMeaning
causecredential, capability, licence, security_gate, approval, host_environment, invalid_input, not_found, conflict, rate_limited, server_errorWhat kind of thing went wrong
retry_oktrue or falseWhether sending the same call again can work

Examples: respira_key_revoked says credential and no retry. respira_site_token_validation_failed (respira.press was out of reach) says host_environment and retry. respira_mcp_authorization_header_stripped says host_environment and no retry; see the host strips the Authorization header. On the site's own MCP endpoint a failed tool call also carries the pair in _meta["respira/error"].

Plan mode and skills (plugin 9.1.0)

CodeMessageSolution
respira_plan_stepNot an error: the write was planned, nothing was writtenShow the person the plan; call respira_apply_plan after they say yes
respira_plan_needs_keyPlan mode needs a connection with its own Respira keyConnect with an API key or a site token
respira_plan_step_not_pendingThe named step is not waitingCall respira_get_plan for the current ids
respira_skill_not_agent_editableThe owner marked the skill as not editable by agentsTell the user; the owner changes it under Respira > AI Skills
respira_option_protectedThe option is one an agent may never writeMake the change in wp-admin; the message says where
respira_svg_unsafeThe SVG could not be made safeFix the file or upload a raster image
respira_divi5_code_module_refusedThe write would add a divi/code moduleUse the native module the message names, or send allow_code_modules: true if the user asked for a code module

See Also