BuildDocsReferenceGuidesBlogDiscordnode:http2Http2ServerResponsestatusCodeBuildDocsReferenceGuidesBlogDiscordnode:http2Http2ServerResponsestatusCodehttp2.Http2ServerResponse.statusCodestatusCodeReferenceDocsGuidesDiscordMerch StoreGitHubBlogRuntimePackage managerTest runnerBundlerPackage runnerBun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseWe're hiring →
Http2ServerResponse.statusCode property | Node.js http2 module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- When using implicit headers (not calling `response.writeHead()` explicitly),
this property controls the status code that will be sent to the client when
the headers get flushed.
```js
response.statusCode = 404;
```
After response header was sent to the client, this property indicates the
status code which was sent out.