How to complete the challenge POST /api/heartbeat as PATCH (500)
Send a normal POST request to /api/heartbeat, but add this header:
X-HTTP-Method-Override: PATCH
The server treats the request as a PATCH and returns the simulated 500 response.
Try it now
POST /api/heartbeat with PATCH override to trigger 500
Lessons Learned
X-HTTP-Method-Override: PATCHcan reach server behavior that a client or proxy might otherwise block.- The
500 Internal Server Errorresult is deliberately about the effectivePATCH /api/heartbeat. - Override handling is a good place to inspect logs or raw responses because the outer method is misleading.
Suggested Experiments
- Send direct
PATCH /api/heartbeat, thenPOST /api/heartbeatwith the override, and compare status lines. - Use an invalid override value and observe whether the API rejects the header or ignores it.