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: posts/en/handling_errors.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,13 @@ next_title: 'Cancellation'
6
6
next_link: '/docs/cancellation'
7
7
---
8
8
9
+
The general structure of axios errors is as follows:
10
+
-**message** - A quick summary of the error message and the status it failed with.
11
+
-**name** - This defines where the error originated from. For axios, it will always be an 'AxiosError'.
12
+
-**stack** - Provides the stack trace of the error.
13
+
-**config** - An axios config object with specific instance configurations defined by the user from when the request was made.
14
+
-**code** - Represents an axios identified error. The table below lists out specific definitions for internal axios error.
15
+
-**status** - HTTP response status code. See [here](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for common HTTP response status code meanings.
0 commit comments