Skills101
← All practice quizzes

Quiz: HTTP Methods, Status Codes and Headers

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

What is inside an HTTP request and response, what GET, POST, PUT, PATCH and DELETE really promise (safe and idempotent), the status codes you must know, useful headers, caching with ETag and 304, and REST API design habits.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Which method should a request that only reads a list of courses use?

  2. Question 2

    What does "idempotent" mean for an HTTP method?

  3. Question 3

    A user is logged in but tries to delete another user's post. Which status code fits?

  4. Question 4

    Which status code should a successful DELETE with nothing to return use?

  5. Question 5

    What does this print?

    const codes = [201, 404, 503, 302];
    console.log(codes.map((c) => Math.floor(c / 100) + "xx").join(" "));
    
🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →