All Questions
Api Design easy

A client POST /users with { email: 'not-an-email', age: -5 }. The server validates and rejects. What status code is structurally and semantically correct?

  1. A 400 Bad Request
  2. B 422 Unprocessable Entity
  3. C 403 Forbidden
  4. D 409 Conflict

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

Get the app

Related questions