Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/kd_clients/mod.ts>NuGetClient#statusCodeValid

Various HTTP clients for miscellaneous use.
Latest
method NuGetClient.prototype.statusCodeValid
import { NuGetClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.13/mod.ts";

Checks if the given status code is valid.

Parameters

statusCode: NuGetHttpStatusCodes

The status code to check.

Returns

boolean

True if the status code is valid, otherwise false.