MCPcopy Create free account
hub / github.com/denoland/std / isInformationalStatus

Function isInformationalStatus

http/status.ts:350–354  ·  view source on GitHub ↗
(
  status: number,
)

Source from the content-addressed store, hash-verified

348 * @returns Whether or not the provided status is an informational status code.
349 */
350export function isInformationalStatus(
351 status: number,
352): status is InformationalStatus {
353 return isStatus(status) && status >= 100 && status < 200;
354}
355
356/**
357 * A type guard that determines if the status code is successful.

Callers 1

fnFunction · 0.90

Calls 1

isStatusFunction · 0.85

Tested by

no test coverage detected