MCPcopy Create free account
hub / github.com/nodejs/node / getStatusText

Function getStatusText

deps/undici/src/lib/mock/mock-utils.js:276–278  ·  view source on GitHub ↗

* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status * @param {number} statusCode

(statusCode)

Source from the content-addressed store, hash-verified

274 * @param {number} statusCode
275 */
276function getStatusText (statusCode) {
277 return STATUS_CODES[statusCode] || 'unknown'
278}
279
280async function getResponse (body) {
281 const buffers = []

Callers 1

handleReplyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected