Refer to the exhibits.

What is the response when a client submits a request to http://localhost:8081?
-----------------------------------------------------------------------------------------------------------------------------------
Here's specifically what is happening here:
1) Payload is successfully set to ''Before''
2) Is null validation is used which will pass the message only if payload is null. In this case as payload is not null, it creates an Error Object. Flow execution stops
#[error.description] = ''Validation error''
3) Because no error handler is defined, the Mule default error handler handles the error
4) ''Validation error'' is the error message returned to the requestor in the body of the HTTP request with HTTP Status Code: 500
Reference diagram:

Currently there are no comments in this discussion, be the first to comment!