7.52Error mapping example
Suppose you call two downstream APIs:
Credit API
Shipping API
Both can produce:
HTTP:INTERNAL_SERVER_ERROR
But business semantics differ.
Mule supports mapping errors:
Credit failure
→ APP:CREDIT_SERVICE_FAILURE
Shipping failure
→ APP:SHIPPING_SERVICE_FAILURE
Then your main handler can make different decisions. This is one reason MuleSoft explicitly recommends error mapping when otherwise-identical connector errors need to be distinguished.