skillworkspaceError Handlingintermediate
MuleSoft Error Handling Scaffold
Scaffolds a global error handler configuration for a Mule application with standard HTTP error mappings.
(0 reviews)
0 forksMC
by MuleSoft CommunitySkill Instructions
When the user asks about error handling in a Mule project:
- Create a global-error-handler.xml in src/main/mule/
- Map common Mule errors to HTTP status codes:
- APIKIT:BAD_REQUEST → 400
- APIKIT:NOT_FOUND → 404
- APIKIT:METHOD_NOT_ALLOWED → 405
- HTTP:UNAUTHORIZED → 401
- HTTP:TIMEOUT → 504
- ANY → 500
- Include correlation ID in all error responses
- Add structured JSON error response body
- Reference the handler in all flow files
Community Results
0 people tried this
Sign in to share your experience with this prompt.
Tags
error-handlingscaffoldglobal-handler
