Read the three real-world web development scenarios below. For each scenario, identify the single most appropriate HTTP Status Code from the…

Read the three real-world web development scenarios below. For each scenario, identify the single most appropriate HTTP Status Code from the provided list that the server should return.

Codes to choose from: 204, 301, 400, 403, 503

· i. Scenario A: A client sends a POST request to create a new user, but the JSON payload is malformed and missing a required bracket, making it impossible for the server to parse the data.

· ii. Scenario B: A user is successfully logged in, but they attempt to access a /admin/settings endpoint. They only have standard user privileges, not administrator rights.

· iii. Scenario C: A client successfully sends a DELETE request to remove a photo. The photo is deleted, and the server needs to acknowledge the success but has no actual data or message to send back in the response body.

From the Combined Bank Assistant Maintenance Engineer (IT) May 2026 – Written exam, question 8 of 13.

More from this paper