From e4e04200c99038f200906053cf6f86b7c5a27650 Mon Sep 17 00:00:00 2001 From: wbamberg Date: Wed, 3 Jul 2024 16:19:30 -0700 Subject: [PATCH] Use more past tense --- files/en-us/web/api/response/arraybuffer/index.md | 4 ++-- files/en-us/web/api/response/blob/index.md | 2 +- files/en-us/web/api/response/bytes/index.md | 4 ++-- files/en-us/web/api/response/formdata/index.md | 2 +- files/en-us/web/api/response/json/index.md | 2 +- files/en-us/web/api/response/text/index.md | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/files/en-us/web/api/response/arraybuffer/index.md b/files/en-us/web/api/response/arraybuffer/index.md index b4e95d956da8ff1..d59e05d92cb64f0 100644 --- a/files/en-us/web/api/response/arraybuffer/index.md +++ b/files/en-us/web/api/response/arraybuffer/index.md @@ -33,9 +33,9 @@ A promise that resolves with an {{jsxref("ArrayBuffer")}}. - {{jsxref("TypeError")}} - : Thrown for one of the following reasons: - The response body is [disturbed or locked](/en-US/docs/Web/API/Fetch_API/Using_Fetch#locked_and_disturbed_streams). - - There is an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). + - There was an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). - {{jsxref("RangeError")}} - - : There is a problem creating the associated `ArrayBuffer`. + - : There was a problem creating the associated `ArrayBuffer`. For example, if the data size is more than [`Number.MAX_SAFE_INTEGER`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER). ## Examples diff --git a/files/en-us/web/api/response/blob/index.md b/files/en-us/web/api/response/blob/index.md index 471c9a091c8561b..75da31c07841ba1 100644 --- a/files/en-us/web/api/response/blob/index.md +++ b/files/en-us/web/api/response/blob/index.md @@ -39,7 +39,7 @@ A promise that resolves with a {{domxref("Blob")}}. - {{jsxref("TypeError")}} - : Thrown for one of the following reasons: - The response body is [disturbed or locked](/en-US/docs/Web/API/Fetch_API/Using_Fetch#locked_and_disturbed_streams). - - There is an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). + - There was an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). ## Examples diff --git a/files/en-us/web/api/response/bytes/index.md b/files/en-us/web/api/response/bytes/index.md index 28dc2b49408e29b..5560be5c59490aa 100644 --- a/files/en-us/web/api/response/bytes/index.md +++ b/files/en-us/web/api/response/bytes/index.md @@ -32,9 +32,9 @@ A promise that resolves with an {{jsxref("Uint8Array")}}. - {{jsxref("TypeError")}} - : Thrown for one of the following reasons: - The response body is [disturbed or locked](/en-US/docs/Web/API/Fetch_API/Using_Fetch#locked_and_disturbed_streams). - - There is an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). + - There was an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). - {{jsxref("RangeError")}} - - : There is a problem creating the associated `ArrayBuffer`. + - : There was a problem creating the associated `ArrayBuffer`. For example, if the data size is more than [`Number.MAX_SAFE_INTEGER`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER). ## Examples diff --git a/files/en-us/web/api/response/formdata/index.md b/files/en-us/web/api/response/formdata/index.md index cb0858acddcb8e7..b4fc1f336b74d83 100644 --- a/files/en-us/web/api/response/formdata/index.md +++ b/files/en-us/web/api/response/formdata/index.md @@ -38,7 +38,7 @@ A {{jsxref("Promise")}} that resolves with a {{domxref("FormData")}} object. - {{jsxref("TypeError")}} - : Thrown for one of the following reasons: - The response body is [disturbed or locked](/en-US/docs/Web/API/Fetch_API/Using_Fetch#locked_and_disturbed_streams). - - There is an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). + - There was an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). - The {{glossary("MIME")}} type of the body cannot be determined from the {{httpheader("Content-Type")}} headers included in the response. - The body cannot be parsed as a `FormData` object. diff --git a/files/en-us/web/api/response/json/index.md b/files/en-us/web/api/response/json/index.md index 40736216621efb2..4a85d80af3330fa 100644 --- a/files/en-us/web/api/response/json/index.md +++ b/files/en-us/web/api/response/json/index.md @@ -36,7 +36,7 @@ anything that can be represented by JSON — an object, an array, a string, a nu - {{jsxref("TypeError")}} - : Thrown for one of the following reasons: - The response body is [disturbed or locked](/en-US/docs/Web/API/Fetch_API/Using_Fetch#locked_and_disturbed_streams). - - There is an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). + - There was an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). - {{jsxref("SyntaxError")}} - : The response body cannot be parsed as JSON. diff --git a/files/en-us/web/api/response/text/index.md b/files/en-us/web/api/response/text/index.md index 1b1888be6cb236a..8e2c4e821f2ea75 100644 --- a/files/en-us/web/api/response/text/index.md +++ b/files/en-us/web/api/response/text/index.md @@ -33,7 +33,7 @@ A Promise that resolves with a {{jsxref("String")}}. - {{jsxref("TypeError")}} - : Thrown for one of the following reasons: - The response body is [disturbed or locked](/en-US/docs/Web/API/Fetch_API/Using_Fetch#locked_and_disturbed_streams). - - There is an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). + - There was an error decoding the body content (for example, because the {{httpheader("Content-Encoding")}} header is incorrect). ## Examples