Error Codes

Complete list of API error codes, their meanings, and how to handle them.

HTTP Status Codes

The RakuWP API uses standard HTTP status codes to indicate the result of a request:

CodeMeaningWhen It Occurs
200SuccessRequest was processed successfully
400Bad RequestMissing or invalid parameters
401UnauthorizedInvalid or missing license key
403ForbiddenLicense is expired, suspended, or revoked
404Not FoundEndpoint or resource does not exist
429Too Many RequestsRate limit exceeded
500Server ErrorUnexpected server-side error

Error Response Format

All error responses follow a consistent JSON structure:

{
    "success": false,
    "error": "Human-readable error message",
    "code": "ERROR_CODE"
}

Common Error Codes

License Errors

CodeDescriptionResolution
LICENSE_INVALIDThe license key is not recognizedCheck for typos. Copy the key from the panel.
LICENSE_EXPIREDThe license has expiredRenew your subscription from the Billing page.
LICENSE_SUSPENDEDThe license has been suspendedContact support for assistance.
SITE_LIMIT_REACHEDMaximum number of active sites reachedDeactivate an existing site before adding a new one.
SITE_NOT_REGISTEREDThe site URL is not registeredAdd your site URL in the panel before activating.

Request Errors

CodeDescriptionResolution
MISSING_PARAMETERA required field is missingCheck the API documentation for required fields.
INVALID_URLThe provided URL is not validEnsure the site URL includes the protocol (https://).
RATE_LIMITEDToo many requests in a short periodWait and retry. Implement exponential backoff.

Handling Errors in Your Code

Always check the success field in the response before processing data. Log error responses for debugging. The plugin handles most errors automatically, but custom integrations should implement proper error handling.