Error Code Reference

Standalone reference page for global and module-specific business error codes.

← Back to API Docs

Module Code Namespaces

Sub codes are grouped by business module for faster troubleshooting and integration.

Code RangeModulePurpose
40001-40111, 40401-40402, 50011AuthLogin/register, captcha/email code, password reset/change.
40101-40301, 42901-42903, 50201, 50301GatewayAPI key auth, credits check, rate limit, provider request failures.
40021-40028, 40302, 40411, 50021-50023PaymentCheckout creation, order state checks, subscription cancellation.

Error Codes

CodeNameDescriptionRecommendation
200SuccessRequest processed successfully.Use `data` for business payload.
400Bad RequestInvalid parameters or business validation failed.Check required fields, value ranges, and request format.
401UnauthorizedAuthentication failed (login required, missing/invalid API key).Re-login or provide a valid `X-API-Key`.
402Insufficient BalanceInsufficient balance or call quota for this request.Recharge or upgrade your plan and retry.
403ForbiddenYou do not have permission or account status is restricted.Check account status and endpoint permission.
404Not FoundRequested resource does not exist.Verify IDs/order numbers and whether data exists.
429Rate Limit ExceededRequest frequency exceeded per-second/per-hour/monthly limits.Use retry with backoff or lower request frequency.
500Internal Server ErrorServer-side processing failed.Retry later and contact support if it persists.
502Service Temporarily UnavailableThe service request failed to be processed.Please try again later.
503Service BusySystem is busy or global protection limit is triggered.Retry after a short wait.

Gateway Detailed Sub Codes

CodeNameDescriptionRecommendation
40101Unauthorized SessionLogin session is missing or invalid.Login again.
40102API Key MissingAPI key is not provided.Provide `X-API-Key` header or bearer token.
40103API Key InvalidAPI key is invalid.Use a valid API key.
40201Insufficient BalanceInsufficient balance or call quota.Recharge or upgrade plan and retry.
40301Account FrozenAccount is frozen or restricted.Contact support to restore account.
42901RPS Limit ExceededPer-second rate limit exceeded.Reduce request burst and retry with backoff.
42902RPH Limit ExceededPer-hour rate limit exceeded.Lower request frequency.
42903Monthly Quota ExceededMonthly call quota reached.Upgrade plan or wait next cycle.
50201Service Temporarily UnavailableThe service request failed to be processed.Please try again later.
50301Global Throttle TriggeredGlobal protection limit is triggered.Retry after a short wait.

Auth Detailed Sub Codes

CodeNameDescriptionRecommendation
40001Invalid CaptchaImage captcha is invalid.Refresh captcha and try again.
40002Captcha RequiredCaptcha is required for this operation.Submit captcha value.
40003Email ExistsEmail is already registered.Use login or reset password.
40004Email Code InvalidEmail verification code is invalid or expired.Request a new email code.
40005Password Too ShortPassword length is below minimum requirement.Use at least 6 characters.
40006Token InvalidReset token is invalid or expired.Request a new reset token.
40007Invalid Plan TypePlan type or plan name is invalid.Use a valid plan from `/myapi/plans`.
40008Email Code CooldownVerification code requested too frequently.Wait for cooldown and retry.
40111Invalid PasswordEmail/password verification failed.Check credentials and retry.
40401Email Not FoundEmail does not exist.Check email address or register first.
40402User Not FoundUser record does not exist.Verify login state and user ID.
50011Email Send FailedFailed to send verification email.Retry later.

Payment Detailed Sub Codes

CodeNameDescriptionRecommendation
40021Order ExpiredOrder has expired before payment.Create a new order.
40022Order Not PendingOrder is not in pending state.Check order status before checkout.
40023Subscription Card OnlySubscription mode only supports card payment.Use `credit_card` payment method.
40024Unsupported PaymentPayment method is not supported.Choose a supported payment method.
40025Order Not Paid SubscriptionOnly paid subscription orders can be cancelled.Cancel only paid subscription orders.
40026Not Subscription OrderCurrent order is not a subscription order.Check billing mode before cancel request.
40027Stripe Only CancelSubscription cancel endpoint only supports Stripe subscriptions.Use Stripe subscription orders for this endpoint.
40028Subscription ID MissingSubscription ID is missing for this order.Wait for webhook sync or retry later.
40302Forbidden ResourceYou do not own this resource.Use the resource under your own account.
40411Order Not FoundOrder record does not exist.Verify `order_no` value.
50021Create Checkout FailedFailed to create payment checkout session.Retry later or use another payment method.
50022Cancel UnsupportedCurrent provider does not support cancellation.Use supported provider or contact support.
50023Cancel Subscription FailedSubscription cancellation failed.Retry later; if persistent, contact support.