← All docs

Failure codes

When a run fails, the alert names a stable code, not a stack trace. The code tells a developer which part of the purchase broke before they open anything.

Updated

The categories

Failures map to one of ten categories: STORE (the storefront itself is unreachable or erroring), PRODUCT (the test product is missing, out of stock or not purchasable), CART (add-to-cart failed or the cart contents are wrong), CHECKOUT (the checkout will not load or advance), SHIPPING (no shipping methods, or the method cannot be selected), TAX (tax is missing or wrong), PAYMENT (no payment methods, or the payment step errors), ORDER (order placement failed or the created order is wrong), NETWORK (a request on the path failed) and INTERNAL (a fault in MageSentinel itself, not your store).

The canonical list lives in the monitoring engine and every failure resolves to exactly one code. A run never reports a raw exception message as its result.

Why codes instead of messages

A stable code is triage. "PAYMENT: no methods available" and "CHECKOUT: shipping step did not render" point a developer at different systems immediately, and they stay comparable across runs so you can see when a failure started and whether it is the same one recurring.

Codes are also what incident correlation groups on: repeated runs failing with the same code on the same store become one incident, not fifty alerts.

The codes under each category

Inside each category the run records a specific code, and that is what the alert and the run page show. Codes that have a step-by-step fix page link to it; all of them are in the checkout errors guide.

CategoryCodes
STORESTORE_UNREACHABLE, MAINTENANCE_PAGE, CUSTOMER_LOGIN_FAILED
PRODUCTPRODUCT_NOT_FOUND, PRODUCT_NOT_PURCHASABLE, PRODUCT_PAGE_ERROR, and the search codes SEARCH_PAGE_ERROR, SEARCH_NO_RESULTS
CARTADD_TO_CART_FAILED (fix: Magento 2, WooCommerce), CART_PRODUCT_MISSING, and the quantity, price and total mismatches
CHECKOUTCHECKOUT_UNREACHABLE, CHECKOUT_JS_ERROR, CHECKOUT_FORM_ERROR, CHECKOUT_SESSION_ERROR
SHIPPINGSHIPPING_NO_METHODS (fix: Magento 2, WooCommerce), SHIPPING_METHOD_SELECTION_FAILED, SHIPPING_PRICE_MISMATCH
TAXTAX_CALCULATION_FAILED, TAX_MISMATCH
PAYMENTPAYMENT_NO_METHODS (fix: Magento 2, WooCommerce), PAYMENT_METHOD_UNAVAILABLE, PAYMENT_UI_ERROR, PAYMENT_DECLINED, PAYMENT_PROVIDER_DOWN
ORDERPLACE_ORDER_FAILED (fix: Magento 2, WooCommerce), ORDER_NOT_CREATED, and the order total and item mismatches
NETWORKTIMEOUT, DNS, TLS, CLOUDFLARE, WAF_CHALLENGE, NETWORK

Where to look first

The category is usually enough to pick the first place to look. PRODUCT points at the catalog: the test product was disabled, went out of stock or lost its price. SHIPPING points at carrier configuration, table rates or a shipping extension that stopped answering. TAX points at tax rules or a tax service. PAYMENT points at the gateway: expired keys, a module disabled after a deploy, or the provider itself having an outage. ORDER means everything up to the final click worked and the order still did not land, which is often a plugin hooked into order placement or an observer throwing an exception.

NETWORK points below the application: DNS, an expired certificate, the CDN or a firewall rule. INTERNAL is ours. It means MageSentinel could not finish the check for its own reasons, and it is never counted against your store.

Codes that do not mean broken

Some codes describe a store that cannot be checked rather than one that is broken: a Cloudflare or WAF challenge, a maintenance page, a catalog behind login, a checkout that is turned off, a CAPTCHA on the order form, a minimum order the test product does not reach. Those runs end UNKNOWN instead of FAIL and do not alert. The full list is in "What UNKNOWN means".

Questions

Do the codes change between releases?

No. Codes are added when the engine learns to tell a new failure apart, but existing codes keep their name and meaning, so filters, webhooks and API integrations built on them keep working.

Where do I see the code?

In every alert (Slack, Teams, Discord, Telegram, PagerDuty, email, webhook), on the run detail page in the dashboard next to the step that failed, and in the run objects returned by the REST API.

Is an INTERNAL failure a problem with my store?

No. INTERNAL means the monitor itself could not proceed. Those runs are not treated as a store failure and do not page you.

More docs

  • How checkout monitoring works: MageSentinel drives a real browser through product, cart, checkout, shipping and payment on your Magento or WooCommerce store, then asserts the business result.
  • What UNKNOWN means: MageSentinel never forces an unclear run into PASS or FAIL. UNKNOWN is a first-class outcome for runs that reached no conclusive point, and it never pages.
  • Evidence and redaction: A failing MageSentinel run keeps a full-page screenshot, a redacted network log, console errors and Web Vitals. Secrets are stripped as evidence is written.
  • Scheduling and alerts: MageSentinel runs the checkout check from once a day on Free to every 5 minutes on Scale and alerts once per PASS/FAIL change, not on every failing check.
  • REST API reference: The MageSentinel REST API: authenticate with an API key, list stores, monitors, runs and incidents, and start a checkout check from CI after a deploy.