Skip to main content
Module

x/windmill/windmill-api/util.ts>isCodeInRange

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
function isCodeInRange
import { isCodeInRange } from "https://deno.land/x/windmill@v1.38.2/windmill-api/util.ts";

Returns if a specific http code is in a given code range where the code range is defined as a combination of digits and "X" (the letter X) with a length of 3

Parameters

codeRange: string

string with length 3 consisting of digits and "X" (the letter X)

code: number

the http status code to be checked against the code range

Returns

boolean