🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: API Design: all 15 questions

Quiz: API Design · Question 2 of 15

A logged-in student tries to open an admin-only page. Which status code fits best?

A logged-in student tries to open an admin-only page. Which status code fits best?

  1. A.401 Unauthorized
  2. B.403 Forbidden
  3. C.404 Not Found
  4. D.500 Internal Server Error
Answer & explanation

Correct answer: 403 Forbidden

401 means "not logged in"; 403 means "we know who you are, but you are not allowed".

Can you get the rest right without peeking?

Take the timed Quiz: API Design quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →