nerdexam
MuleSoft

MCD-LEVEL-1 · Question #14

Refer to the exhibit. The main flow is configured with their error handlers. A web client submit a request to the HTTP Listener and the HTTP Request throws an HTTP:NOT_FOUND error. What response…

The correct answer is A. APP: API RESOURCE NOT FOUND. Correct answer is APP: API RESOURCE NOT FOUND -------------------------------------------------------------------------------------------------------------------------------------- 1) A web client submits the request to the HTTP Listener. 2) The HTTP Request throws an…

Mule 4 Application Development

Question

Refer to the exhibit. The main flow is configured with their error handlers. A web client submit a request to the HTTP Listener and the HTTP Request throws an HTTP:NOT_FOUND error. What response message is returned?’’ What response message is returned?

Exhibit

MCD-LEVEL-1 question #14 exhibit

Options

  • AAPP: API RESOURCE NOT FOUND
  • BHTTP: NOT FOUND
  • Cother error
  • Dsuccess - main flow

How the community answered

(49 responses)
  • A
    84% (41)
  • B
    10% (5)
  • C
    2% (1)
  • D
    4% (2)

Explanation

Correct answer is APP: API RESOURCE NOT FOUND -------------------------------------------------------------------------------------------------------------------------------------- 1) A web client submits the request to the HTTP Listener. 2) The HTTP Request throws an "HTTP:NOT_FOUND" error, execution halts. 3) The On Error Propagate error Handler handles the error. In this case ,HTTP:NOT_FOUND error is mapped to custom error APP:API_RESOURCE_NOT_FOUND. This error processor sets payload to APP:API_RESOURCE_NOT_FOUND. 4) "APP:API_RESOURCE_NOT_FOUND. " is the error message returned to the requestor in the body of the HTTP request with HTTP Status Code: 500

Topics

#error handler matching#HTTP error types#error propagation#error scopes

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice