MugUp logoMugUp
HomeBrowseAboutBlog
LoginSign Up
MugUp

Plan your day, study, read, write and track your habits in one app.

Follow MugUp

Product

  • Features
  • Compare
  • Free Tools
  • Deck Library
  • MugUp for Discord

Community

  • Blog
  • Changelog
  • Feature Requests
  • Deck Requests

Company

  • Home
  • About
  • Contact

© 2026 MugUp. All rights reserved.

Terms of ServicePrivacy PolicyCookie Policy
  1. Browse decks
  2. Backend Engineering Fundamentals
  3. HTTP, Status Codes and REST API Design
Public deck

Backend Engineering Fundamentals

Everything that goes into building a correct, fast, safe backend service: HTTP and REST, auth, SQL, indexing, transactions, and the caching/queueing patterns that keep it standing up. Language- and vendor-agnostic.

Engineering
AShared by Alex Chen
1Sign in to add this deckTry itSign in to clone

Add it to your projects to study it here with your progress saved. Try it plays a round and saves nothing. Clone makes your own copy that you can change.

You’re reading a free preview. Sign up to see every topic and question — and to play this deck as games.

See the whole deck

HTTP, Status Codes and REST API Design

The contract every backend service speaks: methods and their guarantees, the status codes that actually mean something, conditional requests, and how to shape a resource API.

Try this topicBack to deck

Content

73 total questions

MCQ: 16
Fill-in: 15
Flashcards: 22
Pair match: 20
HTTP, Status Codes and REST API Design – Flashcards
Flashcards

Card #1

What do the HTTP status classes 2xx and 3xx mean?

Card #2

When should an API return 401 rather than 403?

Card #3

What does it mean for an HTTP method to be idempotent, and which methods are?

19 more questions in this game

Showing 3 of 22. Sign up free to see the rest.

Sign up freeLog in
HTTP, Status Codes and REST API Design – MCQ
Multiple Choice Questions
  1. 1. A client has sent more requests than its rate limit allows this minute. Which status code should the API return?

    • 403 Forbidden for now
    • 429 Too Many Requests
    • 503 Service Unavailable
    • 409 Conflict with limit
  2. 2. A PUT carries If-Match with an ETag that no longer matches the stored version. What should the server return?

    • 412 Precondition Failed
    • 409 Conflict on version
    • 304 Not Modified as-is
    • 428 Precondition Required
  3. 3. DELETE /orders/7 succeeds, and an identical retry gets 404. Is DELETE still idempotent here?

    • No, an idempotent method must return the same status code every time
    • No, the server should have returned 204 again to remain idempotent
    • Yes, but only because 404 is a 4xx code and so counts as no change
    • Yes, idempotency is about the server state, not identical responses
13 more questions in this game

Showing 3 of 16. Sign up free to see the rest.

Sign up freeLog in
HTTP, Status Codes and REST API Design – Fill-in-the-blank
Fill in the Blank
  1. 1. A 405 Method Not Allowed response must include an ___ header listing the methods the resource supports.

    Answer:Allow

    Hint: A one-word response header

  2. 2. A server answering a Range request with only part of a file returns 206 Partial ___.

    Answer:Content

    Hint: The status code's reason phrase

  3. 3. Return 410 ___ rather than 404 when a resource was removed on purpose and will not come back.

    Answer:Gone

    Hint: Shorter than "Not Found"

12 more questions in this game

Showing 3 of 15. Sign up free to see the rest.

Sign up freeLog in
HTTP, Status Codes and REST API Design – Pair match
Pair Match
User-Agent↔Request header naming the client software
400 Bad Request↔The request is malformed, such as broken JSON syntax
404 Not Found↔Nothing exists at this URL
17 more questions in this game

Showing 3 of 20. Sign up free to see the rest.

Sign up freeLog in