🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.401
  2. B.200
  3. C.404
  4. 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 →