Home/SOAP Track/Fault Taxonomy and Internal Error Mapping

Fault Taxonomy and Internal Error Mapping

Turn SOAP faults into a consistent internal error taxonomy so retry, escalation, and customer messaging follow the right path.

Not Every SOAP Fault Means the Same Thing

SOAP faults bundle validation failures, auth mismatches, policy violations, and transient backend problems under one transport shape. If your integration treats them all as generic 'carrier error' events, you lose the ability to distinguish fast-fail, retry, and escalation-worthy incidents.

Map Fault Detail to Internal Categories

The faultcode, detail block, and any nested carrier-specific codes should resolve to your internal taxonomy: validation, authentication, contract-drift, rate-limit or dependency failure, and ambiguous carrier outage. That boundary is what lets the rest of your platform handle SOAP problems as first-class operational events instead of bespoke XML trivia.
Carrier Reality

Many carrier stacks emit a generic faultstring such as 'Processing Error' while the nested codes distinguish invalid credentials from invalid weight or a temporarily unavailable rating backend. Your mapping layer has to expose that distinction.

Escalation Depends on Structured Evidence

Once you map the fault correctly, the follow-up becomes obvious: fix the payload, rotate credentials, regenerate the client, or escalate with precise evidence. If the logs only preserve the top-level faultstring, you turn solvable SOAP faults into slow manual investigations.

Practice Drills

A SOAP response has `faultstring='Request failed'`, while `detail` contains carrier code `ADDR_204` and field `Consignee.PostalCode`. What should your parser preserve?

For asynchronous webhook handlers, log the raw-body hash, validated , downstream status, deduplication , and the final acknowledgement sent back to the carrier.