ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 63 - MCD - Level 1 discussion

Report
Export

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 throws an error.

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

A.
Response body: 'Error' Default response status code: 200
Answers
A.
Response body: 'Error' Default response status code: 200
B.
Response body: 'Success - Begin* Default response status code: 200
Answers
B.
Response body: 'Success - Begin* Default response status code: 200
C.
Error response body: error, description Default error response status code: 500
Answers
C.
Error response body: error, description Default error response status code: 500
D.
Response body: 'Success - End' Default response status code: 200
Answers
D.
Response body: 'Success - End' Default response status code: 200
Suggested answer: A

Explanation:

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.Reference Diagram:

asked 18/09/2024
Farid Tannouch
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first