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

Function isServerErrorStatus

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

Source from the content-addressed store, hash-verified

426 * @returns Whether or not the provided status is a server error status code.
427 */
428export function isServerErrorStatus(
429 status: number,
430): status is ServerErrorStatus {
431 return isStatus(status) && status >= 500 && status < 600;
432}
433
434/**
435 * A type guard that determines if the status code is an error.

Callers 1

fnFunction · 0.90

Calls 1

isStatusFunction · 0.85

Tested by

no test coverage detected