MCPcopy
hub / github.com/socketio/socket.io / statusCode

Method statusCode

packages/engine.io/lib/userver.ts:298–304  ·  view source on GitHub ↗
(status: number)

Source from the content-addressed store, hash-verified

296 constructor(readonly res: HttpResponse) {}
297
298 public set statusCode(status: number) {
299 if (!status) {
300 return;
301 }
302 // FIXME: handle all status codes?
303 this.writeStatus(status === 200 ? "200 OK" : "204 No Content");
304 }
305
306 public writeHead(status: number) {
307 this.statusCode = status;

Callers

nothing calls this directly

Calls 1

writeStatusMethod · 0.95

Tested by

no test coverage detected