0
0
Postmantesting~20 mins

Status codes reading in Postman - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Status Code Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:00remaining
Understanding HTTP 404 Status Code

What does the HTTP status code 404 indicate when received in a response?

AThe requested resource was not found on the server.
BThe client is not authorized to access the requested resource.
CThe server encountered an internal error and could not complete the request.
DThe request was successful and the server returned the requested data.
Attempts:
2 left
💡 Hint

Think about what happens when you try to visit a webpage that does not exist.

Predict Output
intermediate
1:00remaining
Interpreting a 201 Created Response

In Postman, you send a POST request to create a new user. The server responds with status code 201. What does this status code mean?

AThe server could not process the request due to a syntax error.
BThe server refused the request due to invalid credentials.
CThe server is redirecting the client to a different URL.
DThe server successfully created the resource as requested.
Attempts:
2 left
💡 Hint

201 is a success code related to resource creation.

assertion
advanced
1:30remaining
Validating Response Status in Postman Tests

Which Postman test script correctly asserts that the response status code is 200?

Postman
pm.test('Status code is 200', function () {
    pm.response.to.have.status(200);
});
Apm.test.status(200);
Bpm.response.status(200);
Cpm.response.to.have.status(200);
Dpm.response.assertStatus(200);
Attempts:
2 left
💡 Hint

Look for the correct Postman assertion syntax for status codes.

🔧 Debug
advanced
1:30remaining
Identifying the Cause of a 500 Internal Server Error

You receive a 500 status code in Postman after sending a GET request. What is the most likely cause?

AThe requested resource was not found on the server.
BThere is a problem on the server preventing it from fulfilling the request.
CThe client sent a malformed request that the server could not understand.
DThe client is not authorized to access the resource.
Attempts:
2 left
💡 Hint

500 errors are server-side problems.

framework
expert
2:00remaining
Choosing the Correct Status Code for Unauthorized Access

In a REST API tested with Postman, which HTTP status code should be returned when a user tries to access a resource without valid authentication?

A401 Unauthorized
B403 Forbidden
C404 Not Found
D400 Bad Request
Attempts:
2 left
💡 Hint

Consider the difference between authentication and authorization errors.