|
|
@ -384,7 +384,7 @@ exports.checkCertificate = function (res) {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Check if the provided status code is within the accepted ranges
|
|
|
|
* Check if the provided status code is within the accepted ranges
|
|
|
|
* @param {string} status The status code to check
|
|
|
|
* @param {number} status The status code to check
|
|
|
|
* @param {string[]} acceptedCodes An array of accepted status codes
|
|
|
|
* @param {string[]} acceptedCodes An array of accepted status codes
|
|
|
|
* @returns {boolean} True if status code within range, false otherwise
|
|
|
|
* @returns {boolean} True if status code within range, false otherwise
|
|
|
|
* @throws {Error} Will throw an error if the provided status code is not a valid range string or code string
|
|
|
|
* @throws {Error} Will throw an error if the provided status code is not a valid range string or code string
|
|
|
|