MugUp logoMugUp
HomeBrowsePricingAboutBlogContact
LoginSign Up
© 2026 MugUp. All rights reserved.
HomeAboutDeck LibraryBlogChangelogContactFeature RequestsDeck Requests
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
1PlaySign in to clone

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.

Play 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 sends a well-formed request but its access token has expired. Which status code is most appropriate?

    • 401 Unauthorized
    • 403 Forbidden
    • 400 Bad Request
    • 500 Internal Server Error
  2. 2. Which group of HTTP methods is entirely idempotent?

    • GET, PUT, DELETE
    • GET, POST, PUT
    • POST, PATCH, DELETE
    • POST, PUT, PATCH
  3. 3. An API creates a new order in response to POST /orders. The most appropriate response is:

    • 201 Created with a Location header pointing at the new order
    • 200 OK with an empty body
    • 204 No Content
    • 302 Found with a Location header
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 successful POST that creates a resource should return status ___ together with a Location header.

    Answer:201also: 201 Created

    Hint: Three digits

  2. 2. Status code ___ means the caller is authenticated but not permitted to perform the action.

    Answer:403also: 403 Forbidden

    Hint: Not the one about missing credentials

  3. 3. An HTTP method is ___ when repeating the identical request leaves server state the same as sending it once.

    Answer:idempotent

    Hint: PUT and DELETE have this property

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
200 OK↔Succeeded, with a representation in the body
201 Created↔New resource created; its URL is in the Location header
202 Accepted↔Accepted for processing that has not yet completed
17 more questions in this game

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

Sign up freeLog in