diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index ba25f12c8e92..83f3d9593049 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -9,7 +9,8 @@ _Released 09/19/2023 (PENDING)_ **Bugfixes:** -- Fixed an issue where actionability checks trigger a flood of font requests. Removing the font requests has the potential to improve performance and removes clutter from Test Replay. Addressed in [#27860](https://github.com/cypress-io/cypress/pull/27860) +- Fixed an issue where actionability checks trigger a flood of font requests. Removing the font requests has the potential to improve performance and removes clutter from Test Replay. Addressed in [#27860](https://github.com/cypress-io/cypress/pull/27860). +- Fixed network stubbing not permitting status code 999. Fixes [#27567](https://github.com/cypress-io/cypress/issues/27567). Addressed in [#27853](https://github.com/cypress-io/cypress/pull/27853). ## 13.2.0 diff --git a/packages/driver/src/cy/net-stubbing/static-response-utils.ts b/packages/driver/src/cy/net-stubbing/static-response-utils.ts index 12cd1eb0d777..59196b74d4f5 100644 --- a/packages/driver/src/cy/net-stubbing/static-response-utils.ts +++ b/packages/driver/src/cy/net-stubbing/static-response-utils.ts @@ -41,7 +41,7 @@ export function validateStaticResponse (cmd: string, staticResponse: StaticRespo // statusCode must be a three-digit integer // @see https://tools.ietf.org/html/rfc2616#section-6.1.1 - if (statusCode && !(_.isNumber(statusCode) && _.inRange(statusCode, 100, 999))) { + if (statusCode && !(_.isNumber(statusCode) && _.inRange(statusCode, 100, 1000))) { err('`statusCode` must be a number between 100 and 999 (inclusive).') }