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

Function isRedirectStatus

http/status.ts:390–392  ·  view source on GitHub ↗
(status: number)

Source from the content-addressed store, hash-verified

388 * @returns Whether or not the provided status is a redirect status code.
389 */
390export function isRedirectStatus(status: number): status is RedirectStatus {
391 return isStatus(status) && status >= 300 && status < 400;
392}
393
394/**
395 * A type guard that determines if the status code is a client error.

Callers 2

serveDirFunction · 0.90
fnFunction · 0.90

Calls 1

isStatusFunction · 0.85

Tested by

no test coverage detected