What message processor can set the HTTP response status code to 200?

Study for the MuleSoft Associate / Development Fundamental Test. Master key concepts with flashcards and multiple choice questions, complete with hints and explanations. Prepare thoroughly for your exam!

Multiple Choice

What message processor can set the HTTP response status code to 200?

Explanation:
In a Mule flow, the HTTP response code is controlled by a message property, specifically http.status. To make the response return 200, use a Set Property processor and set the property name to http.status with the value 200. The other processors affect the payload or flow behavior (Transform Message changes the body, Set Payload changes the body, and Message Filter handles routing), but they don’t directly set the HTTP status code.

In a Mule flow, the HTTP response code is controlled by a message property, specifically http.status. To make the response return 200, use a Set Property processor and set the property name to http.status with the value 200. The other processors affect the payload or flow behavior (Transform Message changes the body, Set Payload changes the body, and Message Filter handles routing), but they don’t directly set the HTTP status code.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy