Refactored: Ping action to use headers instead of body.