Free cookie consent management tool by TermsFeed Generator
All Products & Integrations

jalpi page builder docs

Error Codes

Comprehensive reference guide to all standardized REST API and AJAX error codes returned by Jalpi Page Builder endpoints, their corresponding HTTP status codes, cause analysis, and remediation strategies.

Reference REST API & AJAX Status Codes
3 min read Β· November 2026

Error Codes Overview#

Jalpi Page Builder follows the standard WordPress WP_Error convention for all API and AJAX responses. When an operation fails, the API responds with an appropriate HTTP status code (4xx or 5xx) and returns a structured JSON payload containing a machine-readable code, human-readable message, and status metadata:

{
  "code": "rest_forbidden",
  "message": "Sorry, you are not allowed to edit this page.",
  "data": {
    "status": 403
  }
}

REST API Error Codes#

Error CodeHTTP StatusTrigger ConditionRemediation
rest_forbidden403User is not logged in, lacks edit_posts / manage_options capability, or submitted an expired nonce.Verify user permissions and ensure the X-WP-Nonce header is sent with wp_create_nonce('wp_rest').
rest_no_route404Requested URL does not match any registered endpoint under jalpi-page-builder/v1.Check URL spelling, path parameters, and ensure plugin is active.
post_not_found404The specified post_id does not exist, belongs to an unsupported post type, or is trashed.Confirm post ID exists and post type is enabled in Jalpi Settings.
invalid_param400Required body or query parameter is missing, or payload failed schema validation.Review the endpoint parameter specifications and ensure valid JSON data types.
db_error500Database write failed during wp_update_post, class insertion, or transient caching.Check database server health, storage space, and WordPress table permissions.
class_not_found404Requested Global Class ID (e.g. cls_xyz) was not found in {prefix}jalpi_classes.Verify class key exists using GET /classes.
duplicate_class409A class with the requested internal key or unique slug already exists.Generate a unique class key or use PUT /classes/{id} to update existing.
woocommerce_missing400Importing a starter site with WooCommerce catalogue dependencies while WooCommerce is inactive.Install and activate WooCommerce before importing the selected website kit.

AJAX Actions Error Codes#

ActionError ResponseCause
jalpi_pg_page{ success: false, data: "invalid_nonce" }Missing or invalid jalpi_pg nonce during Products Grid pagination.
jalpi_template_preview{ success: false, data: "preview_not_found" }Template ID does not exist or user lacks edit_posts.
jalpi_site_preview{ success: false, data: "unauthorized" }User lacks manage_options capability required for kit previewing.
jalpi_support_submit{ success: false, data: "rate_limit_exceeded" }User exceeded the rate limit (3 submissions per 3600 seconds).

HTTP Status Codes Matrix#

StatusClassificationMeaning in Jalpi Architecture
200 OKSuccessRequest succeeded; JSON payload returned.
201 CreatedSuccessResource created (e.g., new Global Class or Page Rebuild).
400 Bad RequestClient ErrorInvalid parameters, malformed JSON, or unparseable node tree.
401 UnauthorizedClient ErrorAuthentication required (missing session cookies).
403 ForbiddenClient ErrorFailed nonce verification or missing user capabilities.
404 Not FoundClient ErrorResource (page, revision, class, template) does not exist.
409 ConflictClient ErrorResource naming collision or concurrent edit conflict.
429 Too Many RequestsClient ErrorRate limiting triggered on support diagnostics.
500 Server ErrorServer ErrorDatabase query failure or uncaught PHP exception.

Client-Side Error Handling#

When making REST API calls from JavaScript in the editor or admin dashboard, always extract the structured error message:

async function savePageData(postId, data) {
  try {
    const response = await fetch(`/wp-json/jalpi-page-builder/v1/pages/${postId}/save`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
        'X-WP-Nonce': window.jalpiEditorConfig.nonce
      },
      body: JSON.stringify({ pageData: data })
    });

    if (!response.ok) {
      const err = await response.json();
      console.error(`Jalpi API Error [${err.code}]: ${err.message}`);
      alert(err.message || 'An unexpected error occurred.');
      return false;
    }

    const result = await response.json();
    return result;
  } catch (networkError) {
    console.error('Network connection error:', networkError);
    return false;
  }
}

Last updated: November 2026