SpinTheMic
Pro

Interview practice question

What DELETE should return

Backend Engineering · API Design · Beginner

A client calls DELETE /items/42. What should the API return if it succeeds, and if the item is already gone?

What a strong answer covers

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

  • 204 No Content (or 200 with body) on success.
  • Already deleted: 404 or 204.
  • Be consistent and document it.
  • Idempotent behaviour.
  • 403 if not allowed.
Practise this topic

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

See all topics