How to complete the challenge GET /api/heartbeat (204)
Send a GET request to /api/heartbeat.
A 204 No Content response means the request succeeded and the response body should be empty.
Try it now
GET /api/heartbeat to receive 204 with no body
Lessons Learned
GET /api/heartbeatis a successful health check with no response body.204 No Contentmeans the absence of a body is the expected success signal.- Health endpoints are useful for connectivity checks without changing application state.
Suggested Experiments
- Compare body length and headers for
GET /api/heartbeatversusGET /api/todos. - Add an
Acceptheader and confirm the no-body response still does not need a representation.