MCD-LEVEL-1 · Question #28
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? Refer to the exhibits. A…
The correct answer is A. Response body: "Error" Default response status code: 200. Correct Answer: Response body: "Error" Default response status code: 200. -------------------------------------------------------------------------------------------------------------------------------------- 1) Payload is successfully set to "Success - Started Flow" 2) When…
Question
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? Refer to the exhibits. A web client submits a request to the HTTP Listener and the HTTP Request What payload and status code are returned to the web client?
Exhibit
Options
- AResponse body: "Error" Default response status code: 200
- BResponse body: "Success - Begin* Default response status code: 200
- CError response body: error, description Default error response status code: 500
- DResponse body: "Success - End" Default response status code: 200
How the community answered
(52 responses)- A77% (40)
- B6% (3)
- C13% (7)
- D4% (2)
Explanation
Correct Answer: Response body: "Error" Default response status code: 200. -------------------------------------------------------------------------------------------------------------------------------------- 1) Payload is successfully set to "Success - 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.
Topics
Community Discussion
No community discussion yet for this question.
