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/heartbeat is a successful health check with no response body.
  • 204 No Content means 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/heartbeat versus GET /api/todos.
  • Add an Accept header and confirm the no-body response still does not need a representation.
Experiment with this endpoint