How to complete the challenge DELETE /api/heartbeat (405)

The /api/heartbeat endpoint exists, but it does not allow the DELETE method.

Send a DELETE request to /api/heartbeat and verify the response status is 405 Method Not Allowed.

Try it now

DELETE /api/heartbeat to trigger 405

Lessons Learned

  • DELETE /api/heartbeat reaches a real endpoint with a disallowed method, causing 405 Method Not Allowed.
  • 405 Method Not Allowed is different from 404 Not Found because the resource exists but the method is not supported.
  • The raw response status line is useful when teaching method-level failures.

Suggested Experiments

  • Compare DELETE /api/heartbeat with GET /api/heartbeat and inspect both raw status lines.
  • Check whether the Allow header explains which methods /api/heartbeat accepts.
Experiment with this endpoint