BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
15 / 81 · Module 7 — Error Handling in Mule · filtered: interview← prev⊞ allnext →

7.42HTTP Listener response variables

A common Mule design is:

vars.httpStatus

Default:

200

Error handler changes:

vars.httpStatus = 400

or:

503

The Listener response/error response then uses that variable.

Conceptually:

res.status(vars.httpStatus).json(payload);

You don't need exact Listener XML memorized.