Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 97

Refer to the exhibits.

A web client sends a GET request to the HTTP Listener and the HTTP Request throws an error.

What payload and status code are returned to the web client.

    Correct Answer: B

    If the HTTP Request throws an error, the error handling defined within the flow comes into play. The 'On Error Continue' scope is configured to handle such errors, setting the payload to 'ERROR1' and allowing the flow to continue. Since no specific status code is defined in the error handling, the default response status code of 200 is returned. Therefore, the web client receives a payload of 'ERROR1' and a status code of 200.

Discussion
almoraimaOption: B

B is correct

shreyavmOption: B

B is correct. The flow gets an error at the HTTP request and the message in on error continue' is returned

RenatoJrOption: B

B is correct https://blogs.mulesoft.com/dev-guides/how-to-tutorials/mule4-error-handling-deep-dive/

HonestSeeker

The standard way here for checking the correct answer seems to be checking the discussion instead of checking the solution :)

ExamDevOption: B

B. Response body: "ERROR1" Default response status code: 200 - Because we got "On Error Continue" with the message "Error1"

miguel_romeroOption: B

B is correct