204 No Content
The HTTP status meaning the request succeeded and there is deliberately no body to send back.
In more detail
With no body there is also no Content-Type header, because there is nothing to describe. It is a common answer to a successful DELETE, or to a PUT or PATCH when the client needs nothing back.
Example
In the APIs course: The course service answers a successful DELETE, PATCH and PUT to a completion with 204.Related terms
- HTTP status code — The three-digit number at the start of a response, such as 200 or 404, that says how the server handled the request.
- payload — The actual data a message carries, as opposed to the headers and framing around it.
Taught in
- HTTP Methods And Status Codes — Modern API Architecture: REST, GraphQL & gRPC
- Cookies And CORS — Modern API Architecture: REST, GraphQL & gRPC
- Actions That Do Not Fit CRUD — Modern API Architecture: REST, GraphQL & gRPC