MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 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.

Show Answer
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

6 comments
Sign in to comment
almoraimaOption: B
Mar 28, 2021

B is correct

shreyavmOption: B
Aug 22, 2021

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

RenatoJrOption: B
Sep 12, 2021

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

HonestSeeker
Jan 25, 2023

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

miguel_romeroOption: B
Dec 15, 2021

B is correct

ExamDevOption: B
Jan 25, 2024

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