Skip to content

Commit 7d55139

Browse files
docs(readme): improve error descriptions; (#6920)
1 parent f4fc6b8 commit 7d55139

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -840,20 +840,21 @@ The general structure of axios errors is as follows:
840840
| status | HTTP response status code. See [here](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for common HTTP response status code meanings.
841841
842842
Below is a list of potential axios identified error:
843-
| Code | Definition |
844-
| -------- | ---------- |
845-
| ERR_BAD_OPTION_VALUE | Invalid or unsupported value provided in axios configuration. |
846-
| ERR_BAD_OPTION | Invalid option provided in axios configuration. |
847-
| ECONNABORTED | Request timed out due to exceeding timeout specified in axios configuration. |
848-
| ETIMEDOUT | Request timed out due to exceeding default axios timelimit. |
849-
| ERR_NETWORK | Network-related issue.
850-
| ERR_FR_TOO_MANY_REDIRECTS | Request is redirected too many times; exceeds max redirects specified in axios configuration.
851-
| ERR_DEPRECATED | Deprecated feature or method used in axios.
852-
| ERR_BAD_RESPONSE | Response cannot be parsed properly or is in an unexpected format.
853-
| ERR_BAD_REQUEST | Requested has unexpected format or missing required parameters. |
854-
| ERR_CANCELED | Feature or method is canceled explicitly by the user.
855-
| ERR_NOT_SUPPORT | Feature or method not supported in the current axios environment.
856-
| ERR_INVALID_URL | Invalid URL provided for axios request.
843+
844+
| Code | Definition |
845+
| --- | --- |
846+
| ERR_BAD_OPTION_VALUE | Invalid value provided in axios configuration. |
847+
| ERR_BAD_OPTION | Invalid option provided in axios configuration. |
848+
| ERR_NOT_SUPPORT | Feature or method not supported in the current axios environment. |
849+
| ERR_DEPRECATED | Deprecated feature or method used in axios. |
850+
| ERR_INVALID_URL | Invalid URL provided for axios request. |
851+
| ECONNABORTED | Typically indicates that the request has been timed out (unless `transitional.clarifyTimeoutError` is set) or aborted by the browser or its plugin. |
852+
| ERR_CANCELED | Feature or method is canceled explicitly by the user using an AbortSignal (or a CancelToken). |
853+
| ETIMEDOUT | Request timed out due to exceeding default axios timelimit. `transitional.clarifyTimeoutError` must be set to `true`, otherwise a generic `ECONNABORTED` error will be thrown instead. |
854+
| ERR_NETWORK | Network-related issue. In the browser, this error can also be caused by a [CORS](https://developer.mozilla.org/ru/docs/Web/HTTP/Guides/CORS) or [Mixed Content](https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content) policy violation. The browser does not allow the JS code to clarify the real reason for the error caused by security issues, so please check the console. |
855+
| ERR_FR_TOO_MANY_REDIRECTS | Request is redirected too many times; exceeds max redirects specified in axios configuration. |
856+
| ERR_BAD_RESPONSE | Response cannot be parsed properly or is in an unexpected format. Usually related to a response with `5xx` status code. |
857+
| ERR_BAD_REQUEST | The request has an unexpected format or is missing required parameters. Usually related to a response with `4xx` status code. |
857858
858859
## Handling Errors
859860

0 commit comments

Comments
 (0)