Classify 4xx/5xx Failures: Root Trigger, Layer, and Next Steps
Send one error event to POST /analyze or many to POST /analyze/batch with statusCode (400–599) plus optional method, url, duration, requestHeaders, responseHeaders, proxyType, retryAttemptCount, and more. Get triggerCategory, triggerSubcategory, confidenceScore, likelyLayer, recommendedNextSteps, retryRecommendation, and severityHint—rule-based, deterministic, not ML. No calls to your URLs. 1MB JSON limit.
Try the Analyzer Basic on RapidAPI: 100 requests/month free
Turn “another 502” into a routing decision. Same status code can mean upstream refusal, gateway timeout, or misconfigured proxy. Headers plus timing give the model enough signal to suggest infra vs app vs client follow-up—without log scraping.
Real-world use cases
- On-call triage — Attach analysis to PagerDuty or Slack when spikes hit.
- Alert enrichment — Add
triggerCategoryandlikelyLayerbefore routing to teams. - Client integration debug — Outbound
401/403with request header context. - 429 investigation — Combine
Retry-AfterandretryAttemptCountfor storm vs legitimate limit. - Batch pattern mining —
/analyze/batch+summary.categoryCountsfor weekly reviews.
Why not maintain this logic in every service?
- Proxy-specific headers and RFC nuance change over time
- Duplicated heuristics drift between teams
- Central rules stay testable and consistent
Who this API helps
- Backend and platform engineers
- SRE and incident response
- API and developer-relations teams
- Observability pipeline owners
What the API does
POST /analyze — JSON object: required numeric statusCode in 400–599; optional fields per schema below.
POST /analyze/batch — JSON array of the same event objects (non-empty). Response includes results and summary with categoryCounts.
GET /health — { "status": "ok" }.
This is not a substitute for traces or logs; it classifies HTTP-level signals you already captured.
Deterministic by design
Identical JSON in yields identical JSON out—suitable for fixtures and contract tests.
Request & response
Host: api-fault-analysis-engine.p.rapidapi.com — confirm x-rapidapi-host in your RapidAPI app.
View event fields · View analysis response · View batch response · View HTTP errors
Try it in the playground
Switch between single and batch, pick a sample, add your RapidAPI key, run or copy code.
Batch mode requires a JSON array of events.
Subscribe on RapidAPI for production quotas.
Get code
Reflects the playground. Host: api-fault-analysis-engine.p.rapidapi.com.
Integration time: One POST from your alert webhook or pipeline.
Real-world examples
1. Gateway 502 with Envoy timing
Include duration, responseHeaders like x-envoy-upstream-service-time, and proxyType: "envoy" to separate fast upstream refusal from slow timeouts.
2. Weekly error digest
POST an array of representative events to /analyze/batch and sort by summary.categoryCounts.
3. Retry policy hints
Use retryRecommendation and severityHint as signals—not as automatic retry engines.
Pricing & tiers (RapidAPI)
Built for high-volume alert and pipeline enrichment.
Plans on RapidAPI:
Basic
$0/mo
100 requests/month included
Pro
$9.99/mo
10,000 requests/month included
Ultra
$49.99/mo
100,000 requests/month included
Mega
$99.99/mo
250,000 requests/month included
Overage follows the live RapidAPI listing.
What to expect
200 with an analysis object or batch wrapper on success. 400 for validation issues. Oversized or malformed JSON may fail before handlers. 500 on rare internal errors.
About this API
Also known as
API fault analysis engine, HTTP root cause classifier, error triage API.
Trigger categories include client, auth, rate limits, proxy/TLS, timeouts, dependency failures, routing, infra limits, retry storms, and more—see the README for the full enum.
Frequently asked questions
-
No. You only send a JSON description of what already happened.
-
1MB per request.
-
Stateless processing; not persisted by this product.
-
No—deterministic rules from HTTP and common proxy behavior.
-
400–599 only for each event.
-
One object vs non-empty array plus summary category counts.
-
On RapidAPI: Basic 100/mo; Pro $9.99/10k; Ultra $49.99/100k; Mega $99.99/250k.
-
statusCode alone works; headers and duration improve confidence.