🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: HTTP Methods, Status Codes and Headers: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Which method should a request that only reads a list of courses use?
  2. Q2. What does "idempotent" mean for an HTTP method?
  3. Q3. A user is logged in but tries to delete another user's post. Which status code fits?
  4. Q4. Which status code should a successful DELETE with nothing to return use?
  5. Q5. What does this print? (code)
  6. Q6. Why should a GET handler never delete or update data?
  7. Q7. The browser sends If-None-Match: "v42" and the data has not changed. What should the server reply?
  8. Q8. Which header tells the server the request body is JSON?
  9. Q9. Which URL design follows REST conventions for enrolling in course 7?
  10. Q10. Which family of status codes means the problem is on the server side?