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/heartbeatreaches a real endpoint with a disallowed method, causing405 Method Not Allowed.405 Method Not Allowedis different from404 Not Foundbecause 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/heartbeatwithGET /api/heartbeatand inspect both raw status lines. - Check whether the
Allowheader explains which methods/api/heartbeataccepts.