Loading…
A short voice session: one question, one follow-up, then instant feedback — up to 5 minutes.
Use 201 for creation, 400 for an invalid request, 401 for missing or invalid authentication, 403 for refusal, 404 for not found, and 500 for an unexpected server failure.
Select statuses according to the outcome rather than returning 200 for every case. Authentication establishes who is calling; authorization decides whether the caller may perform the operation. A malformed JSON body can warrant 400, while an unexpected internal failure can warrant 500. Error bodies should be useful to clients without exposing stack traces or secrets. A route can deliberately conceal a protected resource with 404.