Refer to the exhibits.
A web client submits a request to the HTTP Listener and the HTTP Request throws an error.
What payload and status code are returned to the web client?
A . Response body: "Error" Default response status code: 200
B . Response body: "Success – Begin* Default response status code: 200
C . Error response body: error, description Default error response status code: 500
D . Response body: "Success – End" Default response status code: 200
Answer: A
Explanation:
Correct Answer. Response body: "Error" Default response status code: 200.
——————————————————————————————————————————————-
1) Payload is successfully set to “Success C Started Flow”
2) When HTTP Request throws an error, execution halts
#[error.description] = “ABC"
#[error.errorType] = "XYZ"
3) The On Error Continue scope handles the error. When On Error Continue scope is invoked, all the processors in error block are executed and success response is sent back to the client with payload which is set in error flow. In this case payload is set to "Error" value in error block.
4) “Error” is returned to the requestor in the body of the HTTP request with HTTP Status Code: 200 as On error continue always sends success error code.
Reference Diagram:
Latest MuleSoft Developer I Dumps Valid Version with 235 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund