All quizzes
Free quiz · 50 questions in the bank

REST API quiz

Test your REST API knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What status code best fits a payload that is well-formed JSON but fails business validation (e.g., "email already taken", "amount must be positive")?

Questions in this quiz
  1. What status code best fits a payload that is well-formed JSON but fails business validation (e.g., "email already taken", "amount must be positive")?
  2. What is the practical difference between `301 Moved Permanently` and `302 Found`?
  3. What is the canonical purpose of `POST`?
  4. What does the `DELETE` method do?
  5. What is the purpose of the HTTP `OPTIONS` method?
  6. What is the canonical purpose of `PATCH`?
  7. What is a "resource" in REST?
  8. What does `500 Internal Server Error` mean?
  9. What is the `Content-Type` request header for?
  10. What does the `Accept` header tell the server?
  11. What does it mean that REST is "stateless"?
  12. Which URL design follows REST conventions best for listing users?
Gaps to close?
Read the curated REST API notes — core concepts, patterns, interview prep.
REST API notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web