← Quiz: REST Assured: all 10 questions
Quiz: REST Assured · Question 7 of 10
Which status code should a test expect when a request is sent without any token to a protected endpoint?
Which status code should a test expect when a request is sent without any token to a protected endpoint?
- A.401
- B.200
- C.404
- D.201
Answer & explanation
Correct answer: 401
401 means not authenticated; 403 means authenticated but not allowed.
Can you get the rest right without peeking?
Take the timed Quiz: REST Assured quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →