SpinTheMic
Pro

Interview practice question

Choosing the right status code

System Design · APIs and Communication · Beginner

Which status codes would you return for: invalid email format, not logged in, logged in but not allowed, duplicate username, and too many requests?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Invalid email: 400 (or 422).
  • Not logged in: 401.
  • Not allowed: 403.
  • Duplicate username: 409.
  • Too many requests: 429.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics