All Questions
Api Design easy

A client calls POST /users with valid data, and the user is created. What status code should the server return?

  1. A 200 OK - indicating the server received the data.
  2. B 201 Created - indicating a new resource was successfully created.
  3. C 202 Accepted - indicating the request is queued for processing.
  4. D 204 No Content - indicating success without a response body.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions