Skip to main content
ServerResponse.prototype.statusMessage - node__http.d.ts - Node documentation
property ServerResponse.prototype.statusMessage

Usage in Deno

```typescript import { ServerResponse } from "node:node__http.d.ts"; ```
When using implicit headers (not calling `response.writeHead()` explicitly), this property controls the status message that will be sent to the client when the headers get flushed. If this is left as `undefined` then the standard message for the status code will be used. ```js response.statusMessage = 'Not found'; ``` After response header was sent to the client, this property indicates the status message which was sent out.

Type

string