You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/8-errors.md
+6-5
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,9 @@ All Got errors contain various metadata, such as:
19
19
20
20
Read the article [here](async-stack-traces.md).
21
21
22
-
**Note:**
22
+
> [!NOTE]
23
23
> - The error codes may differ when the root error has a `code` property set.
24
+
> - The root error will be propagated as is via the [`cause`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) property.
24
25
25
26
### `RequestError`
26
27
@@ -62,8 +63,8 @@ A request is successful when the status code of the final request is `2xx` or `3
62
63
63
64
When [following redirects](2-options.md#followredirect), a request is successful **only** when the status code of the final request is `2xx`.
64
65
65
-
**Note:**
66
-
> -`304` responses are always considered successful.
66
+
> [!NOTE]
67
+
> `304` responses are always considered successful.
67
68
68
69
### `MaxRedirectsError`
69
70
@@ -73,8 +74,8 @@ When the server redirects you more than ten times. Includes a `response` propert
0 commit comments