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