Choose the Status Code
Talk it through out loud with your AI coach.
The problem
- easy
- Pro
Your API returns status two hundred for everything, with an error message hidden in the body, and client developers are complaining. Explain the main families of HTTP status codes and which codes you'd return for common situations.
What a strong answer covers
- What the first digit of a status code signals.
- Fitting codes for different kinds of success.
- Telling apart the common ways a client request can be wrong.
- Why accurate codes matter to tools as well as people, plus a consistent error body.
Common mistake: Mixing up not being signed in with being signed in but not allowed.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud