isErrorStatus
import { isErrorStatus } from "jsr:@ende/http";function
function isErrorStatus(status: number): status is ErrorStatusA type guard that determines if the status code is an error.
status: numberThe status to assert against.
Returns
Whether or not the provided status is an error status code.
Example: Usage
import { isErrorStatus } from "@ende/http/status";
import { assert } from "@ende/assert";
assert(isErrorStatus(502));