2xx Success
Success. The server did what you asked, but there’s nothing useful to send back in the body.
Use 204 when the request succeeded and the client does not need a response body.
DELETE https://api.example.test/api/users/123204 No ContentThe delete succeeded and the server does not need to send anything else back.
PUT https://api.example.test/api/users/123/preferences204 No Content
# Headers
ETag: "prefs-v2"The update succeeded, and any useful metadata can travel in headers without a response body.