Replace ServerResponse.writeHeader() with writeHead()
ProprietaryServerResponse.prototype.writeHeader() was an undocumented alias for writeHead() that was deprecated in Node.js 11 (DEP0063) and removed in Node.js 26. The signatures are identical.
org. openrewrite. node. migrate. http. replace-server-response-write-headermod run . --recipe= org. openrewrite. node. migrate. http. replace-server-response-write-headerInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.